0 Replies Latest reply on Feb 24, 2003 12:20 AM by Tom Wang

    java.lang.NoClassDefFoundError:org.apache.struts.digester.Di

    Tom Wang Newbie

      I am using JBoss 3.0.4 with TomCat 4.1.x.

      Tried to deploy struts' sample download struts-sample.war directly to JBoss and there is no problem.

      However, when I used a build.xml to build the same war and got the following error during deployment. I have checked the war built by myself and the struts.jar is include in the WEB-INF/lib directory and the struts.jar does have the class Digester. I am a bit confused about how come I got this error. Anybody had this problem before or any ideas?

      thanks a lot.

      tom


      21:26:11,970 ERROR [Engine] ----- Root Cause -----
      java.lang.NoClassDefFoundError: org/apache/struts/digester/Digester
      at org.iyxqg.webreg.DatabaseServlet.load(DatabaseServlet.java:239)
      at org.iyxqg.webreg.DatabaseServlet.init(DatabaseServlet.java:175)
      at javax.servlet.GenericServlet.init(GenericServlet.java:256)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
      java:924)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:81
      3)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
      t.java:3341)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
      534)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
      .java:821)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
      7)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)

      at org.jboss.web.catalina.EmbeddedCatalinaService41.createWebContext(Emb
      eddedCatalinaService41.java:432)
      at org.jboss.web.catalina.EmbeddedCatalinaService41.performDeploy(Embedd
      edCatalinaService41.java:306)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:30
      0)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:621)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:585)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy4.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
      tScanner.java:435)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
      canner.java:561)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      doScan(AbstractDeploymentScanner.java:212)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      loop(AbstractDeploymentScanner.java:225)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      run(AbstractDeploymentScanner.java:202)