3 Replies Latest reply on May 7, 2003 8:31 AM by fibs

    Errors when starting jboss-3.0.6_tomcat-4.1.18

    lenn

      Hi, I recently installed jboss-3.0.6_tomcat-4.1.18, but, when I start the application, I got these errors :

      ERROR [org.jboss.deployment.MainDeployer] could not create deployment: file:/D:/j2P/AppS/jboss-3.0.6_tomcat-4.1.18/server/default/deploy/tomcat41-service.xml
      org.jboss.deployment.DeploymentException: 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)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:153)
      at org.jboss.system.ServiceController.install(ServiceController.java:231)
      ...
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:325)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:222)
      at org.jboss.Main.boot(Main.java:148)
      at org.jboss.Main$1.run(Main.java:381)
      at java.lang.Thread.run(Thread.java:536)
      Caused by: RuntimeErrorException: instantiating org.jboss.web.catalina.EmbeddedCatalinaService41 failed: java.lang.NoClassDefFoundError: javax/servlet/ServletContext
      Cause: java.lang.NoClassDefFoundError: javax/servlet/ServletContext
      at org.jboss.mx.server.MBeanServerImpl.handleInstantiateExceptions(MBeanServerImpl.java:883)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:816)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:266)
      at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:293)
      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:86)
      at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:165)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:128)
      ... 55 more

      ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@33352907{ url=file:/D:/j2P/AppS/jboss-3.0.6_tomcat-4.1.18/server/default/deploy/tomcat41-service.xml, deployedLastModified=0 }
      org.jboss.deployment.DeploymentException: 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)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:153)
      at org.jboss.system.ServiceController.install(ServiceController.java:231)
      at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
      ...
      at org.jboss.Main.boot(Main.java:148)
      at org.jboss.Main$1.run(Main.java:381)
      at java.lang.Thread.run(Thread.java:536)
      Caused by: RuntimeErrorException: instantiating org.jboss.web.catalina.EmbeddedCatalinaService41 failed: java.lang.NoClassDefFoundError: javax/servlet/ServletContext
      Cause: java.lang.NoClassDefFoundError: javax/servlet/ServletContext
      at org.jboss.mx.server.MBeanServerImpl.handleInstantiateExceptions(MBeanServerImpl.java:883)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:816)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:266)
      at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:293)
      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:86)
      at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:165)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:128)
      ... 55 more


      Can somebody say me what is wrong ?

      Thanks.

        • 1. Re: Errors when starting jboss-3.0.6_tomcat-4.1.18
          fibs

          Hi Lenn!

          I?ve just the same problem with the embedded tomcat.
          Have you found a solution for this by yourself?

          Regards, Fibs

          • 2. Re: Errors when starting jboss-3.0.6_tomcat-4.1.18
            yjyang

            Hi,I have got the same problem.
            Do you have resolved it ?If you have ,Please tell me how to resolve,Thank you

            • 3. Re: Errors when starting jboss-3.0.6_tomcat-4.1.18
              fibs

              I don?t know really where the problem was but I have set

              CATALINA_HOME <Install embedded Tomcat>
              CLASSPATH <Install embedded Tomcat>\conf
              J2EE_HOME <Install j2sdkee-1.3>
              JASPER_HOME <Install embedded Tomcat>
              JAVA_HOME <Install j2sdk-1.4>
              JBOSS_DIST <Install JBoss>
              JBOSS_HOME <Install JBoss>

              and modified the jndi.properties
              JBoss\server\default\conf

              # JNDI initial context properties for jboss app server
              java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
              java.naming.provider.url=jnp://localhost:1099
              java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces


              tomcat41-service.xml
              JBoss \server\default\deploy

              <!DOCTYPE server [
              <!ENTITY catalina.home"D:\<Install JBoss\tomcat-4.1.x">
              ]>

              I guess the fix path is the important one...

              After those changes I could call the jmx comsole
              http://localhost:8080/jmx-console

              I hope that it helps you with your problem...