3 Replies Latest reply on Mar 17, 2008 12:07 PM by Peter Johnson

    problems upgrading from 4.03 to 4.2.2GA

    Anand Kumar Newbie

      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