deployment of the same ear file works in 4.0.3 but fails in 4.2.2 

Getting a NoClassDefFoundError error when deploying war file embedded inside an 
ear file. 

The class that is not found is present in one of jars in WEBINF/lib directory 
of the war file. 

I can see the jar in 
tmp\deploy\tmp44821css.ear-contents\css-exp.war\WEB-INF\lib 

deploy\jboss-web.deployer\META-INF\jboss-service.xml has following properties 
set 
Java2ClassLoadingCompliance=false 
UseJBossWebLoader=false 

jboss-app.xml in ear file has 
<loader-repository>css-1.0.0:service=LoaderRepository</loader-repository> 

>From the jmx-console I access the LoaderRepository, the URLs list contains 
>tmp\deploy\tmp44821css.ear-contents\css-exp.war 

displayClassInfo - returns "Not loaded in repository cache". 


Stack Trace. 
java.lang.NoClassDefFoundError: lt/monarch/chart/servlet/ChartServlet 
at java.lang.ClassLoader.defineClass1(Native Method) 
at java.lang.ClassLoader.defineClass(ClassLoader.java:620) 
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) 
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) 
at java.net.URLClassLoader.access$000(URLClassLoader.java:56) 
at java.net.URLClassLoader$1.run(URLClassLoader.java:195) 
at java.security.AccessController.doPrivileged(Native Method) 
at java.net.URLClassLoader.findClass(URLClassLoader.java:188) 
at 
org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:682)
 
at 
org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:662)
 
at java.lang.ClassLoader.loadClass(ClassLoader.java:306) 
at 
org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:200)
 
at 
org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:131) 
at org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:399) 
at 
org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:527)
 
at 
org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
 
at java.lang.ClassLoader.loadClass(ClassLoader.java:299) 
at java.lang.ClassLoader.loadClass(ClassLoader.java:251) 
at 
org.jboss.wsf.container.jboss42.JAXWSDeployerHookPreJSE.getRelevantServlets(JAXWSDeployerHookPreJSE.java:128)
 
at 
org.jboss.wsf.container.jboss42.JAXWSDeployerHookPreJSE.isWebServiceDeployment(JAXWSDeployerHookPreJSE.java:101)
 
at 
org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:87)
 
at 
org.jboss.wsf.container.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:79)
 
at 
org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
 
at 
org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
 
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) 
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) 

Any assistance is appreciated.

Thanks

Anand Kumar 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136794#4136794

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136794
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to