Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deploying a JSF 1.2 webapp with an EJB 3.0

 
Jose Alvarez de Lara
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic