3 Replies Latest reply on May 24, 2002 12:15 AM by Shawn Becker

    CD-Example not running on RC3

    Axel Newbie

      Hi. After upgrade to JBoss 3 RC3 i cant deploy the compiled CD-example (running in RC1). Datasource is existant.
      This is what the Logfile tells:

      2002-05-23 15:38:59,812 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.ejb.EJBDeployer@7109c4
      2002-05-23 15:38:59,812 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages of file:/D:/Programme/JBoss/jboss-3.0.0RC3/server/default/deploy/cd.jar
      2002-05-23 15:38:59,812 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/D:/Programme/JBoss/jboss-3.0.0RC3/server/default/deploy/cd.jar
      2002-05-23 15:38:59,812 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/D:/Programme/JBoss/jboss-3.0.0RC3/server/default/deploy/cd.jar
      2002-05-23 15:38:59,862 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
      2002-05-23 15:38:59,862 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=true
      2002-05-23 15:38:59,862 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
      2002-05-23 15:38:59,862 ERROR [org.jboss.metadata.XmlFileLoader] failed to load jboss.xml. There could be a syntax error.
      org.jboss.deployment.DeploymentException: Error in jboss.xml for Bean CDBean: configuration '' not found in standardjboss.xml or jboss.xml
      at org.jboss.metadata.ApplicationMetaData.importJbossXml(ApplicationMetaData.java:544)
      at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:186)
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:324)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:651)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:526)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:490)
      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:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy4.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:405)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:586)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:465)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:237)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
      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:491)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:867)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:339)
      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:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:276)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:692)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:527)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:490)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:472)
      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:491)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:318)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
      at org.jboss.Main.boot(Main.java:142)
      at org.jboss.Main$1.run(Main.java:375)
      at java.lang.Thread.run(Thread.java:484)
      2002-05-23 15:38:59,872 ERROR [org.jboss.ejb.EJBDeployer] Problem loading metaData
      org.jboss.deployment.DeploymentException: Error in jboss.xml for Bean CDBean: configuration '' not found in standardjboss.xml or jboss.xml
      at org.jboss.metadata.ApplicationMetaData.importJbossXml(ApplicationMetaData.java:544)
      at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:186)
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:324)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:651)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:526)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:490)
      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:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy4.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:405)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:586)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:465)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:237)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
      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:491)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:867)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:339)
      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:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:276)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:692)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:527)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:490)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:472)
      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:491)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:318)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
      at org.jboss.Main.boot(Main.java:142)
      at org.jboss.Main$1.run(Main.java:375)
      at java.lang.Thread.run(Thread.java:484)
      2002-05-23 15:38:59,882 DEBUG [org.jboss.ejb.EJBDeployer] Verifying file:/D:/Programme/JBoss/jboss-3.0.0RC3/server/default/deploy/cd.jar
      2002-05-23 15:38:59,882 ERROR [org.jboss.ejb.EJBDeployer] Verfiy failed
      java.lang.NullPointerException
      at org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:123)
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:344)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:651)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:526)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:490)
      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:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy4.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:405)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:586)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:465)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:237)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
      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:491)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:867)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:339)
      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:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:276)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:692)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:527)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:490)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:472)
      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:491)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:318)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
      at org.jboss.Main.boot(Main.java:142)
      at org.jboss.Main$1.run(Main.java:375)
      at java.lang.Thread.run(Thread.java:484)

        • 1. Re: CD-Example not running on RC3. One step further...
          Axel Newbie

          OK, I guess I have to give a configuration name now. Still, this doesnt work. I get another exception (see attached Logfile).

          <?xml version="1.0" encoding="Cp1252"?>


          false
          <container-configurations />
          <resource-managers />
          <enterprise-beans>

          <ejb-name>CDCollectionBean</ejb-name>
          <jndi-name>cd/CDCollection</jndi-name>
          <configuration-name>Standard CMP 2.x EntityBean</configuration-name>


          <ejb-name>CDBean</ejb-name>
          <jndi-name>cd/CD</jndi-name>
          <configuration-name>Standard CMP 2.x EntityBean</configuration-name>

          </enterprise-beans>

          • 2. Re: CD-Example not running on RC3. One step further...
            Pete Luellen Newbie

            I had a similar problem when I upgraded to RC3 - startup was complaining about no configuration name.

            I checked my jndi.properties file and found that I'd pointed to the wrong server. When I updated the jndi.properties file, the problem went away (without adding a configuration name).

            I also found I had to add %JBOSS_DIST%\client\jnet.jar to my classpath when running clients on RC3 (otherwise I'd get a ClassNotFoundException: javax/net/SocketFactory).

            Hope this helps.

            • 3. Re: CD-Example not running on RC3. One step further...
              Shawn Becker Newbie

              I've reproduced your error for jboss-3.0.0RC3_tomcat-4.0.3

              23:54:02,515 ERROR [XmlFileLoader] failed to load jboss.xml. There could be a syntax error.
              org.jboss.deployment.DeploymentException: Error in jboss.xml for Bean CDBean: configuration '' not found in standardjboss.xml or jboss.xml

              If you look at the DTD file for jboss.xml which lives at JBOSS_DIST/dtd/jboss.dtd it says

              <!ELEMENT entity (ejb-name , jndi-name? , home-invoker? , bean-invoker? , configuration-name? , security-proxy?, ejb-ref* , resource-ref*)>

              and

              <!ELEMENT session (ejb-name , jndi-name? , home-invoker? , bean-invoker? , configuration-name?, security-proxy?, ejb-ref* , resource-ref*)>

              you'll see that both uses of configuration-name seem to be optional.

              I tried removing the empty elements
              <configuration-name></configuration-name>

              for both of the enterprise beans in
              examples/org/jboss/docs/cmp/cd/resources/jboss.xml

              and now the cd.jar deploys nicely when you copy it to JBOSS_DIST/server/default/deploy/