2 Replies Latest reply on Oct 30, 2002 2:17 AM by davidchang168

    "run -c all" generates errors

    davidchang168

      Hi all

      The following errors are generated from "run -c all" command, and I checked all the jar files under server/all/lib directory but found none of them have the class CMPStateHome defined and also there's no package name such as org.mortbay.j2ee.session.interfaces exist anywhere. Could anybody shed some lights on this ?

      Thanks in advanced.

      David
      -------------------------------------------------------
      21:10:06,866 INFO [MainDeployer] Starting deployment of package: file:/S:/Apps/jboss-3.0.3_tomcat-4.1.12/server/all/deploy/j
      bossweb-ejb.jar
      21:10:06,976 ERROR [EJBDeployer] Verfiy failed
      java.lang.NoClassDefFoundError: org/mortbay/j2ee/session/interfaces/CMPStateHome
      at java.lang.Class.getConstructor0(Native Method)
      at java.lang.Class.getConstructor(Class.java:922)
      at org.jboss.verifier.strategy.AbstractVerifier.hasDefaultConstructor(AbstractVerifier.java:529)
      at org.jboss.verifier.strategy.EJBVerifier20.verifyCMPEntityBean(EJBVerifier20.java:1767)
      at org.jboss.verifier.strategy.EJBVerifier20.checkBmpOrCmp2Entity(EJBVerifier20.java:165)
      at org.jboss.verifier.strategy.EJBVerifier20.checkEntity(EJBVerifier20.java:135)
      at org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:129)
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:343)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:755)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:615)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
      at java.lang.reflect.Method.invoke(Native Method)
      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:427)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:648)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:499)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:261)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:164)
      at java.lang.reflect.Method.invoke(Native Method)
      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:976)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:397)
      at java.lang.reflect.Method.invoke(Native Method)
      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)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:802)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:564)
      at java.lang.reflect.Method.invoke(Native Method)
      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:479)
      21:10:07,186 INFO [EjbModule] Creating
      21:10:07,206 INFO [EjbModule] Deploying CMPState
      21:10:07,236 WARN [ServiceController] Problem creating service jboss.j2ee:jndiName=jetty/CMPState,service=EJB
      java.lang.ClassNotFoundException: org.mortbay.j2ee.session.interfaces.CMPStateHome
      at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
      at org.jboss.ejb.EntityContainer.create(EntityContainer.java:310)
      at org.jboss.ejb.Container.invoke(Container.java:752)
      at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1058)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy5.create(Unknown Source)
      at org.jboss.system.ServiceController.create(ServiceController.java:315)
      at java.lang.reflect.Method.invoke(Native Method)
      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 $Proxy22.create(Unknown Source)
      at org.jboss.ejb.EjbModule.createService(EjbModule.java:386)
      at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:136)
      at java.lang.reflect.Method.invoke(Native Method)
      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:976)
      at $Proxy5.create(Unknown Source)
      at org.jboss.system.ServiceController.create(ServiceController.java:315)
      at org.jboss.system.ServiceController.create(ServiceController.java:243)
      at java.lang.reflect.Method.invoke(Native Method)
      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 $Proxy11.create(Unknown Source)
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:376)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:755)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:615)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
      at java.lang.reflect.Method.invoke(Native Method)
      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:427)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:648)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:499)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:261)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:164)
      at java.lang.reflect.Method.invoke(Native Method)
      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:976)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:397)
      at java.lang.reflect.Method.invoke(Native Method)
      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)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:802)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:564)
      at java.lang.reflect.Method.invoke(Native Method)
      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:479)
      21:10:07,507 INFO [EjbModule] Created
      21:10:07,517 INFO [EjbModule] Starting
      21:10:07,517 INFO [EjbModule] Started
      21:10:07,517 INFO [MainDeployer] Deployed package: file:/S:/Apps/jboss-3.0.3_tomcat-4.1.12/server/all/deploy/jbossweb-ejb.ja
      r
      21:10:07,527 INFO [MainDeployer] Starting deployment of package: file:/S:/Apps/jboss-3.0.3_tomcat-4.1.12/server/all/deploy/j
      mx-ejb-adaptor.jar
      21:10:07,637 INFO [EjbModule] Creating
      21:10:07,657 INFO [EjbModule] Deploying jmx/ejb/Adaptor
      21:10:07,687 INFO [EjbModule] Created
      21:10:07,687 INFO [EjbModule] Starting
      21:10:07,727 INFO [EjbModule] Started
      21:10:07,727 INFO [MainDeployer] Deployed package: file:/S:/Apps/jboss-3.0.3_tomcat-4.1.12/server/all/deploy/jmx-ejb-adaptor
      .jar
      21:10:07,737 INFO [MainDeployer] Starting deployment of package: file:/S:/Apps/jboss-3.0.3_tomcat-4.1.12/server/all/deploy/j
      mx-console.war/
      21:10:07,777 INFO [EmbeddedCatalinaService41] deploy, ctxPath=/jmx-console, warUrl=file:/S:/Apps/jboss-3.0.3_tomcat-4.1.12/s
      erver/all/deploy/jmx-console.war/
      21:10:07,797 INFO [Engine] WebappLoader[/jmx-console]: Deploying class repositories to work directory S:\Apps\jboss-3.0.3_to
      mcat-4.1.12\tomcat-4.1.x\work\MainEngine\localhost\jmx-console
      21:10:07,807 INFO [Engine] WebappLoader[/jmx-console]: Deploy class files /WEB-INF/classes to S:\Apps\jboss-3.0.3_tomcat-4.1
      .12\server\all\deploy\jmx-console.war\WEB-INF\classes
      21:10:07,937 INFO [Engine] ContextConfig[/jmx-console]: Added certificates -> request attribute Valve
      21:10:08,098 INFO [EmbeddedCatalinaService41] Using Java2 parent classloader delegation: true
      21:10:08,098 INFO [Engine] StandardManager[/jmx-console]: Seeding random number generator class java.security.SecureRandom
      21:10:08,128 INFO [Engine] StandardManager[/jmx-console]: Seeding of random number generator has been completed
      21:10:08,128 INFO [Engine] StandardWrapper[/jmx-console:default]: Loading container servlet default
      21:10:08,128 INFO [Engine] StandardWrapper[/jmx-console:invoker]: Loading container servlet invoker
      21:10:08,148 INFO [MainDeployer] Deployed package: file:/S:/Apps/jboss-3.0.3_tomcat-4.1.12/server/all/deploy/jmx-console.war
      /
      21:10:08,158 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
      Cause: Incomplete Deployment listing:
      Packages waiting for a deployer:

      Incompletely deployed packages:

      MBeans waiting for classes:

      MBeans waiting for other MBeans:
      [ObjectName: jboss.net:service=Axis
      state: CONFIGURED
      I Depend On: jboss.web:service=JBossWeb

      Depends On Me: jboss.net:service=Adaptor
      , ObjectName: jboss.net:service=Adaptor
      state: CONFIGURED
      I Depend On: jboss.net:service=Axis

      Depends On Me: , ObjectName: jboss.j2ee:jndiName=jetty/CMPState,service=EJB
      state: FAILED
      I Depend On:
      Depends On Me: java.lang.ClassNotFoundException: org.mortbay.j2ee.session.interfaces.CMPStateHome]
      21:10:08,248 INFO [URLDeploymentScanner] Started
      21:10:08,248 INFO [MainDeployer] Deployed package: file:/S:/Apps/jboss-3.0.3_tomcat-4.1.12/server/all/conf/jboss-service.xml

        • 1. Re: "run -c all" generates errors
          lviz

          Hi
          ?? i don't know why jboss 3.0.3 with tomcat 4.1.12
          needs a table 'JETTY_HTTPSESSION_CMPSTATE'
          but its starts correct if you add org.mortbay.j2ee.jar from the jbossweb.sar into server/all/lib

          the jbossweb.sar is in the standalone jboss3.0.3.zip

          cheers
          lothar

          ..server/all/deploy/jbossweb-ejb.jar
          INFO [EjbModule] Creating
          INFO [EjbModule] Deploying CMPState
          INFO [EjbModule] Created
          INFO [EjbModule] Starting
          INFO [CMPState] Created table 'JETTY_HTTPSESSION_CMPSTATE' successfully.

          • 2. Re: "run -c all" generates errors
            davidchang168

            Hi Livz

            Thanks a lot for your answer to my question, now the major exception is gone but I still got exceptions while
            deploying packages jmx-console.war and jbossweb-ejb.jar.
            What do I miss ? any more jar files need to be copy from standard jboss303.zip ?

            Thanks

            David
            ------------------------------------------------------
            00:21:39,519 INFO [MainDeployer] Starting deployment of package: file:/S:/Apps/jboss-3.0.3_tomcat-4.1.12/server/all/deploy/j
            bossweb-ejb.jar
            00:21:39,649 INFO [EJBDeployer]
            Bean : CMPState
            Method : public abstract Object getAttribute(String) throws RemoteException
            Section: 9.2.7
            Warning: All the exceptions defined in the throws clause of a matching method in the entity bean's class must be defined in t
            he throws clause of the method of the remote interface.

            00:21:39,669 INFO [EJBDeployer]
            Bean : CMPState
            Method : public abstract Object setAttribute(String, Object, boolean) throws RemoteException
            Section: 9.2.7
            Warning: All the exceptions defined in the throws clause of a matching method in the entity bean's class must be defined in t
            he throws clause of the method of the remote interface.

            00:21:39,689 INFO [EJBDeployer]
            Bean : CMPState
            Method : public abstract Object removeAttribute(String, boolean) throws RemoteException
            Section: 9.2.7
            Warning: All the exceptions defined in the throws clause of a matching method in the entity bean's class must be defined in t
            he throws clause of the method of the remote interface.

            00:21:39,709 INFO [EJBDeployer]
            Bean : CMPState
            Method : public abstract Enumeration getAttributeNameEnumeration() throws RemoteException
            Section: 9.2.7
            Warning: All the exceptions defined in the throws clause of a matching method in the entity bean's class must be defined in t
            he throws clause of the method of the remote interface.

            00:21:39,739 INFO [EJBDeployer]
            Bean : CMPState
            Method : public abstract String; getAttributeNameStringArray() throws RemoteException
            Section: 9.2.7
            Warning: All the exceptions defined in the throws clause of a matching method in the entity bean's class must be defined in t
            he throws clause of the method of the remote interface.

            00:21:39,759 INFO [EjbModule] Creating
            00:21:39,779 INFO [EjbModule] Deploying CMPState
            00:21:39,829 INFO [EjbModule] Created
            00:21:39,829 INFO [EjbModule] Starting
            00:21:40,891 INFO [CMPState] Created table 'JETTY_HTTPSESSION_CMPSTATE' successfully.
            00:21:41,081 INFO [EjbModule] Started
            00:21:41,091 INFO [MainDeployer] Deployed package: file:/S:/Apps/jboss-3.0.3_tomcat-4.1.12/server/all/deploy/jbossweb-ejb.ja
            r
            00:21:41,091 INFO [MainDeployer] Starting deployment of package: file:/S:/Apps/jboss-3.0.3_tomcat-4.1.12/server/all/deploy/j
            mx-ejb-adaptor.jar
            00:21:41,191 INFO [EjbModule] Creating
            00:21:41,201 INFO [EjbModule] Deploying jmx/ejb/Adaptor
            00:21:41,251 INFO [EjbModule] Created
            00:21:41,251 INFO [EjbModule] Starting
            00:21:41,281 INFO [EjbModule] Started
            00:21:41,281 INFO [MainDeployer] Deployed package: file:/S:/Apps/jboss-3.0.3_tomcat-4.1.12/server/all/deploy/jmx-ejb-adaptor
            .jar
            00:21:41,291 INFO [MainDeployer] Starting deployment of package: file:/S:/Apps/jboss-3.0.3_tomcat-4.1.12/server/all/deploy/j
            mx-console.war/
            00:21:41,331 INFO [EmbeddedCatalinaService41] deploy, ctxPath=/jmx-console, warUrl=file:/S:/Apps/jboss-3.0.3_tomcat-4.1.12/s
            erver/all/deploy/jmx-console.war/
            00:21:41,351 INFO [Engine] WebappLoader[/jmx-console]: Deploying class repositories to work directory S:\Apps\jboss-3.0.3_to
            mcat-4.1.12\tomcat-4.1.x\work\MainEngine\localhost\jmx-console
            00:21:41,361 INFO [Engine] WebappLoader[/jmx-console]: Deploy class files /WEB-INF/classes to S:\Apps\jboss-3.0.3_tomcat-4.1
            .12\server\all\deploy\jmx-console.war\WEB-INF\classes
            00:21:41,492 INFO [Engine] ContextConfig[/jmx-console]: Added certificates -> request attribute Valve
            00:21:41,672 INFO [EmbeddedCatalinaService41] Using Java2 parent classloader delegation: true
            00:21:41,682 INFO [Engine] StandardManager[/jmx-console]: Seeding random number generator class java.security.SecureRandom
            00:21:41,682 INFO [Engine] StandardManager[/jmx-console]: Seeding of random number generator has been completed
            00:21:41,692 INFO [Engine] StandardWrapper[/jmx-console:default]: Loading container servlet default
            00:21:41,692 INFO [Engine] StandardWrapper[/jmx-console:invoker]: Loading container servlet invoker
            00:21:41,702 INFO [MainDeployer] Deployed package: file:/S:/Apps/jboss-3.0.3_tomcat-4.1.12/server/all/deploy/jmx-console.war
            /
            00:21:41,722 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
            Cause: Incomplete Deployment listing:
            Packages waiting for a deployer:

            Incompletely deployed packages:

            MBeans waiting for classes:

            MBeans waiting for other MBeans:
            [ObjectName: jboss.net:service=Axis
            state: CONFIGURED
            I Depend On: jboss.web:service=JBossWeb

            Depends On Me: jboss.net:service=Adaptor
            , ObjectName: jboss.net:service=Adaptor
            state: CONFIGURED
            I Depend On: jboss.net:service=Axis

            Depends On Me: ]
            00:21:41,782 INFO [URLDeploymentScanner] Started
            00:21:41,792 INFO [MainDeployer] Deployed package: file:/S:/Apps/jboss-3.0.3_tomcat-4.1.12/server/all/conf/jboss-service.xml

            00:21:41,802 INFO [Server] JBoss (MX MicroKernel) [3.0.3 Date:200209301503] Started in 0m:19s:929ms