4 Replies Latest reply on Feb 12, 2003 5:39 PM by Darren Smith

    Deployment Problem

    Darren Smith Newbie

      I'm having a couple of problems deploying JBOSS. I get it to start up, and some things are running, but I cannot access the JMX-console. I realize that it is at http://localhost:8080/jmx-console/
      but it won't come up.

      When I start JBOSS, I'm getting the following errors:

      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 org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:569)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      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.system.server.ServerImpl.doStart(ServerImpl.java:324)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:221)
      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.EmbeddedCatalinaServiceSX failed: java.lang.NoClassDefFoundError: org/apache/catalina/Context
      Cause: java.lang.NoClassDefFoundError: org/apache/catalina/Context
      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:167)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:130)
      ... 55 more
      10:47:58,770 INFO [MainDeployer] Starting deployment of package: file:/opt/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/user-service.xml
      10:47:58,788 INFO [MainDeployer] Deployed package: file:/opt/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/user-service.xml
      10:47:58,790 INFO [MainDeployer] Starting deployment of package: file:/opt/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/jboss-local-jdbc.rar
      10:47:59,602 WARN [ServiceController] jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper does not implement any Service methods
      10:47:59,604 WARN [ServiceController] jboss.jca:service=LocalTxDS,name=hsqldbDS does not implement any Service methods
      10:47:59,606 INFO [LocalTxConnectionManager] Creating
      10:47:59,891 INFO [LocalTxConnectionManager] Created
      10:48:00,403 INFO [LocalTxConnectionManager] Starting
      10:48:00,651 INFO [DefaultDS] Bound connection factory for resource adapter 'JBoss LocalTransaction JDBC Wrapper' to JNDI name 'java:/DefaultDS'
      10:48:00,653 INFO [LocalTxConnectionManager] Started
      10:48:00,654 INFO [MainDeployer] Deployed package: file:/opt/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/jboss-local-jdbc.rar
      10:48:00,656 INFO [MainDeployer] Starting deployment of package: file:/opt/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/jboss-xa.rar
      10:48:00,808 INFO [RARMetaData] Loading Minerva Resource Adapter for JDBC 2 XA drivers
      10:48:00,961 INFO [RARMetaData] Required license terms present. See deployment descriptor.
      10:48:01,001 WARN [ServiceController] jboss.jca:service=RARDeployment,name=Minerva JDBC XATransaction ResourceAdapter does not implement any Service methods
      10:48:01,030 INFO [MainDeployer] Deployed package: file:/opt/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/jboss-xa.rar
      10:48:01,032 INFO [MainDeployer] Starting deployment of package: file:/opt/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/jms-ra.rar
      10:48:01,583 WARN [ServiceController] jboss.jca:service=RARDeployment,name=JMS Adapter does not implement any Service methods
      10:48:01,585 WARN [ServiceController] jboss.jca:service=XaTxDS,name=jmsra does not implement any Service methods
      10:48:01,586 INFO [XATxConnectionManager] Creating
      10:48:01,602 INFO [XATxConnectionManager] Created
      10:48:01,628 INFO [XATxConnectionManager] Starting
      10:48:01,724 INFO [JaasSecurityManagerService] Created securityMgr=org.jboss.security.plugins.JaasSecurityManager@ee3aa7
      10:48:01,727 INFO [JaasSecurityManagerService] setCachePolicy, c=org.jboss.util.TimedCachePolicy@4cd580
      10:48:01,728 INFO [JaasSecurityManagerService] Added JmsXARealm, org.jboss.security.plugins.SecurityDomainContext@54f9f1 to map
      10:48:02,009 INFO [JmsXA] Bound connection factory for resource adapter 'JMS Adapter' to JNDI name 'java:/JmsXA'
      10:48:02,010 INFO [XATxConnectionManager] Started
      10:48:02,011 INFO [MainDeployer] Deployed package: file:/opt/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/jms-ra.rar
      10:48:02,013 INFO [MainDeployer] Starting deployment of package: file:/opt/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/ejb-management.jar
      10:48:04,843 INFO [EjbModule] Creating
      10:48:05,173 INFO [EjbModule] Deploying MEJB
      10:48:07,300 INFO [EjbModule] Created
      10:48:07,303 INFO [EjbModule] Starting
      10:48:08,212 INFO [EjbModule] Started
      10:48:08,214 INFO [MainDeployer] Deployed package: file:/opt/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/ejb-management.jar
      10:48:08,216 INFO [MainDeployer] Starting deployment of package: file:/opt/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/jmx-ejb-adaptor.jar
      10:48:09,233 INFO [EjbModule] Creating
      10:48:09,611 INFO [EjbModule] Deploying jmx/ejb/Adaptor
      10:48:10,013 INFO [EjbModule] Created
      10:48:10,015 INFO [EjbModule] Starting
      10:48:10,152 INFO [EjbModule] Started
      10:48:10,153 INFO [MainDeployer] Deployed package: file:/opt/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/jmx-ejb-adaptor.jar
      10:48:10,155 INFO [MainDeployer] Starting deployment of package: file:/opt/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/HelloWorld.jar
      10:48:10,468 INFO [MainDeployer] Deployed package: file:/opt/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/HelloWorld.jar
      10:48:10,470 INFO [MainDeployer] Starting deployment of package: file:/opt/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/adder.jar
      10:48:10,483 INFO [MainDeployer] Deployed package: file:/opt/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/adder.jar
      10:48:10,485 INFO [MainDeployer] Starting deployment of package: file:/opt/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/jmx-console.war/
      10:48:10,509 INFO [MainDeployer] deployment waiting for deployer: file:/opt/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/jmx-console.war/
      10:48:10,510 INFO [MainDeployer] Deployment of package: file:/opt/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/jmx-console.war/ is waiting for an appropriate deployer.
      10:48:10,523 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
      Cause: Incomplete Deployment listing:
      Packages waiting for a deployer:
      [org.jboss.deployment.DeploymentInfo@9c9d17f7 { url=file:/opt/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/http-invoker.sar/invoker.war/ }
      deployer: null
      status: Starting
      state: INIT_WAITING_DEPLOYER
      watch: file:/opt/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/http-invoker.sar/invoker.war/
      lastDeployed: 1044640070806
      lastModified: 1036288425000
      mbeans:
      , org.jboss.deployment.DeploymentInfo@9a212b4 { url=file:/opt/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/jmx-console.war/ }
      deployer: null
      status: null
      state: INIT_WAITING_DEPLOYER
      watch: file:/opt/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/jmx-console.war/
      lastDeployed: 1044640090510
      lastModified: 1036288425000
      mbeans:
      ]Incompletely deployed packages:
      [org.jboss.deployment.DeploymentInfo@f9e17799 { url=file:/opt/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/tomcat4-service.xml }
      deployer: org.jboss.deployment.SARDeployer@910040
      status: Deployment FAILED reason: instantiating org.jboss.web.catalina.EmbeddedCatalinaServiceSX failed: java.lang.NoClassDefFoundError: org/apache/catalina/Context; - nested throwable: (RuntimeErrorException: instantiating org.jboss.web.catalina.EmbeddedCatalinaServiceSX failed: java.lang.NoClassDefFoundError: org/apache/catalina/Context
      Cause: java.lang.NoClassDefFoundError: org/apache/catalina/Context)
      state: FAILED
      watch: file:/opt/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/tomcat4-service.xml
      lastDeployed: 1044640078315
      lastModified: 1044640077000
      mbeans:
      , org.jboss.deployment.DeploymentInfo@9a212b4 { url=file:/opt/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/jmx-console.war/ }
      deployer: null
      status: null
      state: INIT_WAITING_DEPLOYER
      watch: file:/opt/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/jmx-console.war/
      lastDeployed: 1044640090510
      lastModified: 1036288425000
      mbeans:
      ]MBeans waiting for classes:

      MBeans waiting for other MBeans:


      and this one...

      10:47:58,431 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@f9e17799{ url=file:/opt/jboss-3.0.4_tomcat-4.0.6/server/default/deploy/tomcat4-service.xml, deployedLastModified=0 }
      org.jboss.deployment.DeploymentException: instantiating org.jboss.web.catalina.EmbeddedCatalinaServiceSX failed: java.lang.NoClassDefFoundError: org/apache/catalina/Context; - nested throwable: (RuntimeErrorException: instantiating org.jboss.web.catalina.EmbeddedCatalinaServiceSX failed: java.lang.NoClassDefFoundError: org/apache/catalina/Context
      Cause: java.lang.NoClassDefFoundError: org/apache/catalina/Context)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:155)
      at org.jboss.system.ServiceController.install(ServiceController.java:225)
      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.install(Unknown Source)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:209)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:760)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:620)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:585)
      at sun.reflect.GeneratedMethodAccessor10.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 $Proxy4.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:656)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:261)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
      at sun.reflect.GeneratedMethodAccessor7.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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:398)
      at sun.reflect.GeneratedMethodAccessor6.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.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:249)

      Any help on how to resolve these errors would be very helpful.

        • 1. Re: Deployment Problem
          Adrian Brock Master

          That class should be in
          catalina/server/lib/catalina.jar

          Is the configuration for loading these jars correct
          in tomcat4-service.xml (it uses xml entities to
          describe the locations).

          The other problems are caused by Tomcat not starting.

          Regards,
          Adrian

          • 2. Re: Deployment Problem
            Darren Smith Newbie

            I will check the tomcat4-service.xml file to make sure the cofig is correct.

            However, Tomcat is started. If I go to
            http://localhost:8080
            I get the page stating that tomcat is running.

            • 3. Re: Deployment Problem
              Darren Smith Newbie

              I will check the configuration file, but it should work, as I just downloaded JBOSS and deployed it, without making any changes whatsoever.

              As for Tomcat not starting, well,
              http://localhost:8080
              gives me the Tomcat has started page, so I don't think that's the problem.

              • 4. Re: Deployment Problem
                Darren Smith Newbie

                Adrian

                Thanks for your reply. I have just tracked down the tomcat41-service.xml file, and catalina.jar is indeed in the correct location. And tomcat IS starting up. So I can't for the life of me figure out why I are getting these errors.

                The most frustrating thing is that I downloaded the package, installed it according to documentation (and a book that I have) and without changing anything, I'm getting these errors.

                According to everything I can find, this should be working. However, it is not.

                Am I missing something? Is there somthing obvious that I can't see?

                Thanks again for your help,

                Darren