1 Reply Latest reply on Sep 27, 2003 7:04 AM by Jon Barnett

    redeploy problem for a .WAR file with Jboss3.0.6/Tomcat4.1.1

    zqingru Newbie

      Hi,

      I am working on a project using Jboss3.0.6/Tomcat4.1.12 &struts 1.1 . When I started Jboss server, everything works fine. But when I redeploy the one jar file and one .War file to the hot deploy directory, the jar file seems to be redeployed fine, but there are problems for the war file, below is the log.
      Can someone help me to figure out what is going on? Do I need to put Struts lib. into Jboss Lib? and how?
      Thanks in advance for any inputs.

      Qingru



      16:02:04,466 INFO [Engine] ContextConfig[/Navigo]: Added certificates -> request attribute Valve
      16:02:06,527 INFO [EmbeddedCatalinaService41] Using Java2 parent classloader delegation: true
      16:02:06,529 INFO [Engine] StandardManager[/Navigo]: Seeding random number generator class java.security.SecureRandom
      16:02:06,531 INFO [Engine] StandardManager[/Navigo]: Seeding of random number generator has been completed
      16:02:06,534 INFO [Engine] StandardWrapper[/Navigo:default]: Loading container servlet default
      16:02:06,593 INFO [Engine] StandardWrapper[/Navigo:action]: Marking servlet action as unavailable
      16:02:06,594 ERROR [Engine] StandardContext[/Navigo]: Servlet /Navigo threw load() exception
      javax.servlet.ServletException: Error instantiating servlet class org.apache.struts.action.ActionServlet
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:911)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
      at org.jboss.web.catalina.EmbeddedCatalinaService41.createWebContext(EmbeddedCatalinaService41.java:432)
      at org.jboss.web.catalina.EmbeddedCatalinaService41.performDeploy(EmbeddedCatalinaService41.java:306)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.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)
      16:02:06,603 ERROR [Engine] ----- Root Cause -----
      java.lang.LinkageError: loader constraints violated when linking javax/servlet/http/HttpServletRequest class
      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
      at java.lang.Class.getConstructor0(Class.java:1762)
      at java.lang.Class.newInstance0(Class.java:276)
      at java.lang.Class.newInstance(Class.java:259)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:902)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
      at org.jboss.web.catalina.EmbeddedCatalinaService41.createWebContext(EmbeddedCatalinaService41.java:432)
      at org.jboss.web.catalina.EmbeddedCatalinaService41.performDeploy(EmbeddedCatalinaService41.java:306)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.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)
      16:02:06,612 INFO [Engine] StandardWrapper[/Navigo:invoker]: Loading container servlet invoker
      16:02:06,646 INFO [MainDeployer] Deployed package: file:/user/zqingru/jboss-3.0.6_tomcat-4.1.18/server/default/deploy/Navigo.war

        • 1. Re: redeploy problem for a .WAR file with Jboss3.0.6/Tomcat4
          Jon Barnett Master

          A few people seem to have had this problem where the Struts libraries have become entangled and filed to undeploy cleanly. WSAD includes Struts as part of the system libraries.

          Therefore, I have been recommending that JBoss users employing Struts should include this with the JBoss libraries. Place it in your instance library directory. For the default instance, this would be server/default/lib of your JBoss 3.2.x distribution. This should be sufficient but YMMV.