3 Replies Latest reply on Apr 28, 2003 2:08 PM by jboss-newbie

    tomcat dead on restart

    resansom

      When I download JBOSS 3.0.4 with Tomcat 4.1.18, I am able to start up an instance of the server and deploy my application (which runs successfully). However, every time I shut down the server and restart it, I get a bunch of error messages - a portion of which is here:

      state: INIT_WAITING_DEPLOYER
      watch: file:/home/rich/jboss-3.0.6_tomcat-4.1.18/server/default/deploy/wrt.war lastDeployed: 1050334372290
      lastModified: 0
      mbeans:
      , org.jboss.deployment.DeploymentInfo@71e64a4d { url=file:/home/rich/jboss-3.0.6_tomcat-4.1.18/server/default/deploy/tomcat41-service.xml }
      deployer: org.jboss.deployment.SARDeployer@1f5d386
      status: Deployment FAILED reason: instantiating org.jboss.web.catalina.EmbeddedCatalinaService41 failed: java.lang.NoClassDefFoundError: javax/servlet/ServletContext; - nested throwable: (RuntimeErrorException: instantiating org.jboss.web.catalina.EmbeddedCatalinaService41 failed: java.lang.NoClassDefFoundError: javax/servlet/ServletContext
      Cause: java.lang.NoClassDefFoundError: javax/servlet/ServletContext)
      state: FAILED

      So, it appears as if the class loader is getting messed up or Tomcat's servlet.jar file is getting hosed (although it looks OK to me). This happens every time - I have to re-install the JBOSS jar file to get things working again.

      Is anybody else having this problem?

      Thanks.

      -Rich

        • 1. Re: tomcat dead on restart
          resansom

          Sorry if that was poorly worded (I thought it was - I posted without proofing first...). Anyway, I modified the tomcat41-service.xml file, changing from a relative path for CATALINA_HOME to an abs path (e.g., from "../tomcat-4.1.x" to "/home/.../jboss/tomcat-4.1.x") and that seems to have fixed the problem. I can't believe that I'm the only person who's had this problem... anyone else out there who's seen this?

          Thanks.

          -Rich

          • 2. Re: tomcat dead on restart
            jboss-newbie

            I have the same problem. New installation sometimes helps and sometimes doesnot.

            I keep getting the message 8080 is in use and my portscan software says it is not.

            So, i am looking for help now desperately.

            That is the reason sometimes I feel MS products are better for administration. Not that I am real fan of MS

            • 3. Re: tomcat dead on restart
              jboss-newbie

              It works when I change the Tomcat Port to 9090. I did this by changing all entries pointing to 8080 to 9090 in the file jboss-service.xml.

              C:\java\jboss-3.2.0_tomcat-4.1.24\server\default\deploy\http-invoker.sar\META-INF

              C:\java\jboss-3.2.0_tomcat-4.1.24\server\default\deploy\jbossweb-tomcat.sar\META-INF