1 Reply Latest reply on Oct 20, 2003 5:09 AM by juha

    NoClassDefFoundError (Non-reproducible)

    gerrylau

      Hi all

      My Jboss version is 3.0.7 with Jetty.

      I hit this non-reproducible error that sometimes some webservice applications could not be loaded after restarting jboss. If this happened, I touch the war file to ask jboss to reload it. The error is annoying coz it is unpredictable. Below is the error message I found in JBOSS_HOME/server/default/log/server.log.


      003-10-09 17:57:04,860 WARN [org.jboss.jbossweb] WARNING: Error for /zws/services/Recovery
      java.lang.NoClassDefFoundError: org/apache/axis/utils/Messages
      at org.apache.axis.configuration.EngineConfigurationFactoryFinder$1.run(EngineConfigurationFactoryFinder.java(Compiled Code))
      at java.security.AccessController.doPrivileged(Native Method)
      at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:152)
      at org.apache.axis.transport.http.AxisServletBase.getEngineEnvironment(AxisServletBase.java:285)
      at org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:208)
      at org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:187)
      at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:224)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:339)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
      at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
      at org.mortbay.http.HttpContext.handle(HttpContext.java(Compiled Code))
      at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507)
      at org.mortbay.http.HttpContext.handle(HttpContext.java(Compiled Code))
      at org.mortbay.http.HttpServer.service(HttpServer.java(Compiled Code))
      at org.jboss.jetty.Jetty.service(Jetty.java:460)
      at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java(Compiled Code))
      at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java(Compiled Code))
      at org.mortbay.http.HttpConnection.handle(HttpConnection.java(Compiled Code))
      at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
      at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
      at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java(Compiled Code))

      Should I upgrade to 3.2.1 to avoid this error? I heard that 3.2.1 uses jasper2. But I don't know if it helps or not.

      Thanks for any advice!

      Gerry




        • 1. Re: NoClassDefFoundError (Non-reproducible)

          You have a deployment ordering problem. Sometimes your deploying a service (servlet?) that requires axis (in its init method?) classes. But these libs have not been loaded yet.

          When you touch the web.xml it redeploys and works since now the axis lib is there.

          -- Juha