my dog learned polymorphism*
The moose likes Oracle/OAS and the fly likes Deploying a JSF 1.2 webapp with an EJB 3.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "Deploying a JSF 1.2 webapp with an EJB 3.0" Watch "Deploying a JSF 1.2 webapp with an EJB 3.0" New topic
Author

Deploying a JSF 1.2 webapp with an EJB 3.0

Jose Alvarez de Lara
Ranch Hand

Joined: May 10, 2008
Posts: 92
Hi,

I am trying to deploy an EAR file that consist of an EJB 3.0 stateless session bean and a mdb and JSF 1.2 and I get the following exception,



Even being into spanish I think is easy to understand. The EAR file is developed in Eclipse IDE so I have got the libraries for the JSF 1.2 that are in the build path
instead of WEB-INF/lib. I am not sure if that is the problem. I have been googling and have not answer (a lot of opnions but no answer)

So please, what is the problem?

Best Regards,
Jose
Jose Alvarez de Lara
Ranch Hand

Joined: May 10, 2008
Posts: 92
HI,

I have found the following,



But I have not the commons-el.jar file. Even doing it I get the same exception.

Regards,
Jose
Jose Alvarez de Lara
Ranch Hand

Joined: May 10, 2008
Posts: 92
Hello,

I have deployed the JSF 1.2 jar libraries into the OC4J container. I have put them in j2ee\home\shared-lib in a folder \org.apache.myfaces\1.2\.
But I do not think this is the correct way. Even having declared the jars in the server.xml file, I can not deploy the ear file.

So my questions is how must I call the folders in j2ee\home\shared-lib?

This is the declaration in the server.xml file,

<shared-library name="org.apache.myfaces" version="1.2" library-compatible="true">
<code-source path="../../home/shared-lib/org.apache.myfaces/1.2/commons-beanutils-1.7.0.jar"/>
<code-source path="../../home/shared-lib/org.apache.myfaces/1.2/commons-collections-3.2.jar"/>
<code-source path="../../home/shared-lib/org.apache.myfaces/1.2/commons-discovery-0.4.jar"/>
<code-source path="../../home/shared-lib/org.apache.myfaces/1.2/myfaces-api-1.2.6.jar"/>
<code-source path="../../home/shared-lib/org.apache.myfaces/1.2/commons-codec-1.3.jar"/>
<code-source path="../../home/shared-lib/org.apache.myfaces/1.2/commons-digester-1.8.jar"/>
<code-source path="../../home/shared-lib/org.apache.myfaces/1.2/commons-logging-1.1.1.jar"/>
<code-source path="../../home/shared-lib/org.apache.myfaces/1.2/myfaces-impl-1.2.6.jar"/>
</shared-library>

And I am not sure I have to declare all the jars libraries.

Any help will be appreciated!!!

Best Regards,
Jose
Jose Alvarez de Lara
Ranch Hand

Joined: May 10, 2008
Posts: 92
Hi

I am developing on Eclipse Galileo for OC4J 10.1.3.5.0

I have changed the libraries from Apache MyFaces to Sun RI and now I get the following exception,

oracle.oc4j.admin.internal.DeployerException: Error instantiate servlet classes
10/02/13 17:57:30 at com.evermind.server.http.deployment.WARAnnotationParser.getServletClasses(WARAnnotationParser.java:157)
10/02/13 17:57:30 at com.evermind.server.http.deployment.WARAnnotationParser.parseAnnotations(WARAnnotationParser.java:95)
10/02/13 17:57:30 at com.evermind.server.http.HttpApplication.parseMetaData(HttpApplication.java:8765)
10/02/13 17:57:30 at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1262)
10/02/13 17:57:30 at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:848)
10/02/13 17:57:30 at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:435)
10/02/13 17:57:30 at com.evermind.server.Application.getHttpApplication(Application.java:592)
10/02/13 17:57:30 at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:2280)
10/02/13 17:57:30 at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:2199)
10/02/13 17:57:30 at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1833)
10/02/13 17:57:30 at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:304)
10/02/13 17:57:30 at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:120)
10/02/13 17:57:30 at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:92)
10/02/13 17:57:30 at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeployer.java:825)
10/02/13 17:57:30 at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:276)
10/02/13 17:57:30 at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:100)
10/02/13 17:57:30 at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
10/02/13 17:57:30 at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
10/02/13 17:57:30 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
10/02/13 17:57:30 at java.lang.Thread.run(Thread.java:595)

PLease help!!!

Jose
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deploying a JSF 1.2 webapp with an EJB 3.0
 
Similar Threads
EJB 2.0, WSAD 5, example problem
How to deploy an ear into OC4J 10.1.3.5 from then admin console
I can't StartUp a "Jboss Tool Web JSF" Project in Tomcat 6.
Problem when calling applet
oc4j AnnotatedNoClassDefFoundError