1 Reply Latest reply on Jul 15, 2002 8:38 PM by Julian Gosnell

    cocoon and NoClassDefFoundError during deployment

    Emmanuel Charpentier Newbie

      we are having troubles using cocoon classes in our facades (session ejb). Specifically, we get during deployment a NoClassDefFoundError: org/apache/cocoon/xml/EmbeddedXMLPipe, although we do have all the relevant libraries in WEB-INF/lib and WEB-INF/lib/cocoon.jar does include the above class.

      We had other troubles directly using ContentHandler in order to feed XML to our pipelines, but we are still open to suggestions...

      BTW, classloading can be very difficult to handle sometimes. Cocoon take ages to load, unless setting false in jetty-plugin.sar/META-INF/jboss-service.xml (and then you hit other problems, ie, ClassCastException when looking up ejbs).

      struggling, we just can't get the right class during deployment, even unpacking or moving jars aroung... Any help appreciated.

      JBoss 3.0, jdk1.3.1, gnu-linux/debian



      stacktrace:

      2002-07-15 19:27:27,980 INFO [org.jboss.ejb.EjbModule] Deploying TestCivilityFacade
      2002-07-15 19:27:28,164 DEBUG [org.jboss.system.ServiceController] adding depends in ServiceController.create: []
      2002-07-15 19:27:28,444 ERROR [org.jboss.deployment.MainDeployer] could not create deployment: file:/home/manu/public_j2ee/icartable.ear/icartable.jar/
      java.lang.NoClassDefFoundError: org/apache/cocoon/xml/EmbeddedXMLPipe
      at java.lang.Class.getMethods0(Native Method)
      at java.lang.Class.getMethods(Class.java:742)
      at org.jboss.ejb.StatelessSessionContainer.setupBeanMapping(StatelessSessionContainer.java:518)
      at org.jboss.ejb.StatelessSessionContainer.create(StatelessSessionContainer.java:162)
      at org.jboss.ejb.Container.invoke(Container.java:789)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:894)
      at $Proxy6.create(Unknown Source)
      at org.jboss.system.ServiceController.create(ServiceController.java:272)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy33.create(Unknown Source)
      at org.jboss.ejb.EjbModule.createService(EjbModule.java:392)
      at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:134)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:894)
      at $Proxy6.create(Unknown Source)
      at org.jboss.system.ServiceController.create(ServiceController.java:272)
      at org.jboss.system.ServiceController.create(ServiceController.java:212)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy5.create(Unknown Source)
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:380)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:637)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:631)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:512)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:481)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy4.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:405)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:515)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:202)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)