-
15. Re: java.lang.NoClassDefFoundError Caused by: java.lang.ClassNotFoundException
chandrup Dec 17, 2012 4:42 AM (in response to nickarls)I am trying to bring up the application in JBoss AS 7.1 by migrating the ear built in jboss 3.2.
-
16. Re: java.lang.NoClassDefFoundError Caused by: java.lang.ClassNotFoundException
nickarls Dec 17, 2012 5:27 AM (in response to chandrup)I got that part. It was the classpath-manouvering that lost me after that. So.
1. Create a normal module with contains portal-ejb.jar and whatever you need
2. Make sure no jar that you placed in the module exists in your war/lib or the portal war/lib
3. Add a manifest Dependencies: the.module.name to your application and the portal.war
-
17. Re: java.lang.NoClassDefFoundError Caused by: java.lang.ClassNotFoundException
chandrup Dec 17, 2012 5:52 AM (in response to nickarls)Yes Nicklas I got this done. I placed the following jars(underlined) in the module for which Class not found exception was throwing.
<module xmlns="urn:jboss:module:1.0" name="com.liferay.portal">
<resources>
<resource-root path="portal-service-6.0.5.jar" />
<resource-root path="portal-ejb.jar" />
<resource-root path="util-java.jar" /><resource-root path="lucene.jar" />
<resource-root path="struts.jar" />
<resource-root path="nfc-server.jar" />
<resource-root path="jcvs.jar" />
<resource-root path="javax.ejb.jar" />
<resource-root path="httpbridge.jar" />
<resource-root path="log4j.jar" /><resource-root path="commons-logging.jar" />
</resources>
<dependencies>
<module name="javax.api" />
<module name="javax.mail.api" />
<module name="javax.servlet.api" />
<module name="javax.servlet.jsp.api" />
<module name="javax.transaction.api" />
</dependencies>
</module>These jars were copied from the EAR/lib. Now I don't get CFNE. But still I have no clue on how to fix dependencies :
ERROR [org.jboss.as.server.deployment.scanner1048] {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"spinnaker_im.ear\".\"portal-web-complete.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"spinnaker_im.ear\".\"portal-web-complete.war\".POST_MODULE: Failed to process phase POST_MODULE of subdeployment \"portal-web-complete.war\" of deployment \"spinnaker_im.ear\""},"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheManager.ValidatorFactoryjboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheManager
Missing[jboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheManager.ValidatorFactoryjboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheManager]","jboss.naming.context.java.comp.spinnaker_im.documentlibrary-ejb.com_liferay_documentlibrary_ejb_DLManager.Validatorjboss.naming.context.java.comp.spinnaker_im.documentlibrary-ejb.com_liferay_documentlibrary_ejb_DLManager
Missing[jboss.naming.context.java.comp.spinnaker_im.documentlibrary-ejb.com_liferay_documentlibrary_ejb_DLManager.Validatorjboss.naming.context.java.comp.spinnaker_im.documentlibrary-ejb.com_liferay_documentlibrary_ejb_DLManager]","jboss.naming.context.java.comp.spinnaker_im.counter-ejb.com_liferay_counter_ejb_CounterManager.Validatorjboss.naming.context.java.comp.spinnaker_im.counter-ejb.com_liferay_counter_ejb_CounterManager
Missing[jboss.naming.context.java.comp.spinnaker_im.counter-ejb.com_liferay_counter_ejb_CounterManager.Validatorjboss.naming.context.java.comp.spinnaker_im.counter-ejb.com_liferay_counter_ejb_CounterManager]","jboss.naming.context.java.comp.spinnaker_im.counter-ejb.com_liferay_counter_ejb_CounterManager.ValidatorFactoryjboss.naming.context.java.comp.spinnaker_im.counter-ejb.com_liferay_counter_ejb_CounterManager
Missing[jboss.naming.context.java.comp.spinnaker_im.counter-ejb.com_liferay_counter_ejb_CounterManager.ValidatorFactoryjboss.naming.context.java.comp.spinnaker_im.counter-ejb.com_liferay_counter_ejb_CounterManager]","jboss.naming.context.java.comp.spinnaker_im.mail-ejb.com_liferay_mail_ejb_MailManager.Validatorjboss.naming.context.java.comp.spinnaker_im.mail-ejb.com_liferay_mail_ejb_MailManagerThanks,
Chandru