Deploying an ADF 11g Application in JBoss5 Part 1

In a series of blog entries I will explain how to deploy different types of ADF11g applications on JBoss5. The first application that we are going to deploy is a simple ADF Faces application that doesn't use the ADFm to bind the UI with the business services. In this case we can use backing bean code to leverage business services from the application.

Requirements:

For this sample we need to download and install JBoss 5.0GA and JDeveloper 11g. For this case we are not going to access any data from a database. I'll cover this in upcoming entries.

Establish a connection from JDeveloper to the JBoss Server

Go to IDE Connections the right hand side of JDeveloper and create a new application server connection to JBoss that points to the deploy folder

image 

Creating the ADF Faces Simple Application

I created a simple ADF Faces application with the following structure.

image

As you can see I created a couple of JSPX pages (login.jspx and hello.jspx) using ADF Faces Rich Components and a customized template (myOwnThreeColumn.jspx). I made and initial attempt to use the /oracle/templates/threeColumTemplate.jspx from JDeveloper but this template is part of a jar file that is included within JDeveloper for design WLS and wont be deployed to JBoss unless you include it into your project.

Also notice that I have defined a navigation case in the faces-config.xml file -from the login page to the hello page that, is enabled through a a backing bean (ADFLoginBean.java) custom logic on the ActionListener of the login button.

 

 

 

Required Libraries

In order to deploy the ADF Faces application we need to include the following libraries in the lib directory of the JBoss server

<JDevHome>\jdeveloper\modules\oracle.adf.share_11.1.1\adflogginghandler.jar

<JDevHome>\jdeveloper\modules\oracle.adf.share_11.1.1\adf-share-support.jar

<JDevHome>\jdeveloper\modules\oracle.adf.share.ca_11.1.1\adf-share-base.jar

<JDevHome>\jdeveloper\modules\oracle.adf.share.ca_11.1.1\adf-share-ca.jar

<JDevHome>\jdeveloper\modules\oracle.bali.share_11.1.1\share.jar

<JDevHome>\jdeveloper\modules\oracle.adf.model_11.1.1\adfm.jar

<JDevHome>\jdeveloper\modules\oracle.adf.model_11.1.1\adflibfilter.jar

<JDevHome>\jdeveloper\modules\oracle.dms_11.1.1\dms.jar
<JDevHome>\jdeveloper\modules\oracle.javatools_11.1.1\javatools-nodeps.jar

<JDevHome>\jdeveloper\modules\oracle.javacache_11.1.1\cache.jar

<JDevHome>\jdeveloper\modules\oracle.jmx_11.1.1\jmxframework.jar

<JDevHome>\jdeveloper\modules\oracle.jmx_11.1.1\jmxspi.jar

<JDevHome>\jdeveloper\modules\oracle.jps_11.1.1\jps-api.jar

<JDevHome>\jdeveloper\modules\oracle.mds_11.1.1\mdsrt.jar

<JDevHome>\jdeveloper\modules\oracle.xdk_11.1.1\xml.jar

<JDevHome>\jdeveloper\modules\oracle.xdk_11.1.1\xmlparserv2.jar

<JDevHome>\jdeveloper\modules\oracle.xmlef_11.1.1\xmlef.jar

Deploying the Application

Go to your project properties and edit the deployment profile-> Select JBoss for the platform. Then right click on the project name and deploy to your JBoss connection.

Verify in the JBoss console that there are none errors of deployment, after that access your application on the browser.

In following entries I will cover how to deploy an application that makes use of the ADFm.

Comments:

thanks for this article. For a few weeks, I've been seeking for an article that shows how to deploy ADF 11g applications into JBoss app server. And now I found your article, that help me a lot ! I'll be waiting for the next article on this series !

Posted by Anderson on January 13, 2009 at 07:06 AM PST #

Great article. I will be waiting for article where you show how to use business components on JBoss (I spend on it much time, but I still can't do that)

Posted by peter_pl on January 14, 2009 at 07:33 PM PST #

thanks for this article.but I got a exception javax.management.InstanceNotFoundException: jboss:service=CorbaORB is not registered. at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:529) at org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:559) at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:507) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4388) at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:367) at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146) at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460) at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)

Posted by kety on April 08, 2009 at 11:55 PM PDT #

Hi Kety, Remember that this is for an ADF Faces stand alone application, by this I mean that if you are adding ADFm bindings, or ADF Business components it is expected that you get an error. What I can suggest is that you validate that all of the libraries are included and that you are using JBoss 5GA and JDev11g. After that feel free to post your question on the JDeveloper Forum http://forums.oracle.com/forums/forum.jspa?forumID=83 We can follow up from there. Juan C.

Posted by Juan Camilo on April 09, 2009 at 05:58 AM PDT #

Hi, I got this error when trying to doploy to Jboss. May i know why? ERROR [AbstractKernelController] Error installing to Parse: name=vfszip:/usr/jboss/jboss-5.0.0.GA/server/default/deploy/application1.ear state=Not Installed mode=Manual requiredState=Parse org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/usr/jboss/jboss-5.0.0.GA/server/default/deploy/application1.ear/webapp1.war at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:337) at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:297) at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:269) at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:230) at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171) at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439) at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157) at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210) at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098) at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598) at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984) at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822) at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553) at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781) at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545) at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304) at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205) at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405) at org.jboss.Main.boot(Main.java:209) at org.jboss.Main$1.run(Main.java:547) at java.lang.Thread.run(Thread.java:619) Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: cvc-complex-type.2.4.b: The content of element 'application' is not complete. One of '{"http://java.sun.com/xml/ns/j2ee":description, "http://java.sun.com/xml/ns/j2ee":display-name, "http://java.sun.com/xml/ns/j2ee":icon, "http://java.sun.com/xml/ns/j2ee":module}' is expected. @ vfszip:/usr/jboss/jboss-5.0.0.GA/server/default/deploy/application1.ear/webapp1.war/WEB-INF/classes/META-INF/application.xml[2,228] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203) at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168) at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:199) at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:170) at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:132) at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:118) at org.jboss.deployment.AppParsingDeployer.parse(AppParsingDeployer.java:79) at org.jboss.deployment.AppParsingDeployer.parse(AppParsingDeployer.java:46) at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:256) at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:188) at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:323) ... 23 more

Posted by Taufik on May 05, 2009 at 09:58 AM PDT #

this really aids, today i receive the troubles and i donot know how to puzzle out, i research google and discovered your blog, thanks again

one thing, may i post this article on my site? i will add the source and credit to your site.

regards!

Posted by sam sean on December 18, 2009 at 10:08 AM PST #

Sure I'm glad you found it useful. Send us the link once you post it.

Posted by juan.ruiz on December 21, 2009 at 02:25 AM PST #

http://www.oracle.com/technetwork/developer-tools/jdev/jdeveloper11gfaq-085697.html "- How much does the runtime license for TopLink and ADF 11g cost for 3rd party application servers? - At the time of writing the licence cost is 5,800 USD per processor, or 120 USD per named user plus, support is also available for purchase. [...]" So why bothering of using ADF 11g on something else than WebLogic Server? Or maybe ADF 11g is just free since now?

Posted by borizm on December 13, 2010 at 06:28 AM PST #

ADF 11g and TopLink license are part of any version of Oracle WLS, if you want to deploy in 3rd party Apps Servers either just ADF11g or just Toplink pieces of the App, there is a licensing cost associated with it. Juan C.

Posted by juan.ruiz on January 06, 2011 at 04:22 AM PST #

Quiero dar las gracias por esta excelente lectura! Definitivamente, me encantó .He marcado su sitio web para estar pendiente de cuando publiques nuevo material.

Posted by Age Spots on April 07, 2011 at 12:47 PM PDT #

good information, thanks

Posted by Christian Louboutin on April 26, 2011 at 11:40 AM PDT #

We are trying to deploy ADF on Jboss 5/7

we had an error and everyone says it doesn't support.

forums.oracle.com/forums/thread.jspa?threadID=2318005&tstart=45

can you please help us. I posted it on the following forum.

Appreciate your response!

Posted by guest on December 07, 2011 at 08:55 PM PST #

I've replied on the forum.

Thanks,

Juan Camilo

Posted by Juan C. Ruiz on December 27, 2011 at 05:20 AM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

me
A blog that explores features, tips and tricks of ADF and JDeveloper by Juan Camilo Ruiz, Product Manager on the ADF and JDeveloper team
Follow me:
Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today