Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Deploying JHeadStart application

778367Jun 10 2010 — edited Aug 5 2010
See if JHeadStart developer can give some input here.


When I tested the JHeadStart app in JDeveloper 11.1.1.1.3 integrated weblogic server, it is perfectly ok, the app ran fine.

But when I started a standalone weblogic 10.3 and deployed the JHeadStart app as a EAR, I got the following error.

ConfigurationException

Source :

war/WEB-INF/faces-config.xml

Cause :

Class 'oracle.jheadstart.controller.jsf.application.JhsNavigationHandlerImpl' is missing a runtime dependency: java.lang.NoClassDefFoundError: org/apache/myfaces/trinidadinternal/application/NavigationHandlerImpl

It seems that I am NOT the only one that experience this problem

1075069

I installed the latest patch set for JDeveloper and Weblogic, create a new domain with Oracle JRF and manually include all the library available in the project already, but still got the error.

This is the list of library in my .war\WEB-INF\lib

adf-controller-api.jar
adf-controller-rt-common.jar
adf-controller-schema.jar
adf-controller-security.jar
adf-controller.jar
adf-dt-at-rt.jar
adf-faces-databinding-rt.jar
adf-pageflow-dtrt.jar
adf-pageflow-fwk.jar
adf-pageflow-impl.jar
adf-pageflow-rc.jar
adf-richclient-api-11.jar
adf-richclient-impl-11.jar
adf-share-base.jar
adf-share-ca.jar
adf-share-security.jar
adf-share-support.jar
adf-transactions-dt.jar
adfdt_common.jar
adflogginghandler.jar
adfm.jar
adfmweb.jar
adfsharembean.jar
bc4j-mbeans.jar
bc4jwizard.jar
cache.jar
com.bea.core.apache.commons.collections_3.2.0.jar
commons-cli-1.0.jar
commons-el.jar
db-ca.jar
dms.jar
dvt-databindings.jar
dvt-faces.jar
dvt-facesbindings.jar
dvt-jclient.jar
dvt-trinidad.jar
dvt-utils.jar
glassfish.jsf_1.2.9.0.jar
glassfish.jstl_1.2.0.1.jar
groovy-all-1.6.3.jar
identitystore.jar
inspect4.jar
javatools-nodeps.jar
javax.activation_1.1.0.0_1-1.jar
javax.jsf_1.0.0.0_1-2.jar
javax.jsp_1.1.0.0_2-1.jar
javax.management.j2ee_1.0.jar
javax.management_1.2.1.jar
javax.servlet_1.0.0.0_2-5.jar
jdev-cm.jar
jewt4.jar
jhsadfrt-11.1.1.jar
jmxframework.jar
jmxspi.jar
jps-ee.jar
jsp-el-api.jar
log4j-1.2.15.jar
mdsrt.jar
ojdbc6.jar
ojdl.jar
ojmisc.jar
oracle-el.jar
oracle.jheadstart.addins.jag.jar
oracle.ucp_11.1.0.jar
oramds.jar
org.apache.commons.beanutils_1.6.jar
org.apache.commons.digester_1.8.jar
org.apache.commons.logging_1.0.4.jar
resourcebundle.jar
share.jar
trinidad-api.jar
trinidad-impl.jar
wls.jsf.di.jar
xml.jar
xmlef.jar
xmlparserv2.jar

Edited by: user1027304 on Jun 10, 2010 2:59 AM

Comments

But the jar mentioned in this other thread, <BEA_HOME>\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF\lib\jsf-impl.jar is NOT in your WEB-INF/lib directory. Can you add this jar as well?

Also, what is the content of your weblogic.xml file?

Steven Davelaar,
Jheadstart team.
778367
Yeah, issue solved. a quite common EAR, WAR library reference problem ^.^

Since I deployed the application as an EAR, it seems that weblogic cannot reference .war/WEB-INF/lib/trinidad-impl.jar. (since the jar is put in viewcontroller project.

So I have to put the trinidad.jar and trinidad-impl.jar to .ear/lib

Edited by: user1027304 on Jun 14, 2010 12:12 AM
778367
I have figured out the problem behind. The J2EE classloader problem.

For some unknown reason, the JHeadStart runtime (jhsadfrt-11.1.1.jar) has been copied to EAR's lib folder.

Thus JhsNavigationHandlerImpl is loaded to EAR classloader, instead of WAR's one.

Since EAR classloader is the parent of WAR classloader, the trinidad runtime cannot be found by JhsNavigationHandlerImpl.


The problem is solved simply by removing jhsadfrt-11.1.1.jar from EAR's lib folder.
1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 2 2010
Added on Jun 10 2010
3 comments
4,972 views