6 Replies Latest reply on May 22, 2003 8:48 AM by Adrian Brock

    deploy EJB error

    jackzhuo Newbie

      I used 3.0.7 ago, now i want to transfer to 3.2.1. But when i deploy a examples that is well-run in 3.0.7, the console display as following:

      20:47:24,786 ERROR [MainDeployer] could not create deployment: file:/C:/opensour
      ce/jboss/server/default/deploy/Hello.jar
      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans faile
      d, see above for error messages.
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:487)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:784)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:639)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
      at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy7.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
      tScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
      canner.java:476)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      doScan(AbstractDeploymentScanner.java:200)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      loop(AbstractDeploymentScanner.java:211)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      run(AbstractDeploymentScanner.java:190)
      20:47:24,796 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment
      .scanner.URLDeploymentScanner$DeployedURL@8c905fd3{ url=file:/C:/opensource/jbos
      s/server/default/deploy/Hello.jar, deployedLastModified=0 }
      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans faile
      d, see above for error messages.
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:487)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:784)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:639)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
      at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy7.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
      tScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
      canner.java:476)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      doScan(AbstractDeploymentScanner.java:200)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      loop(AbstractDeploymentScanner.java:211)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      run(AbstractDeploymentScanner.java:190)



      Who can help me?

      BTW, if i want some new descriptions of configuration xml files, where can i get it?

      Thanks.

        • 1. Re: deploy EJB error
          Adrian Brock Master

          Did you "see above for error messages"?

          Regards,
          Adrian

          • 2. Re: deploy EJB error
            jackzhuo Newbie

            In my EJB, I use mysql database, because i transfer to jboss-3.2.1, I wrote a datasource configuration file like this named mysql-ds.xml:
            ---------------------------------------------------------------------
            <?xml version="1.0" encoding="UTF-8"?>

            <!-- $Id: hsqldb-ds.xml,v 1.1.2.4 2003/04/22 20:34:33 d_jencks Exp $ -->


            <local-tx-datasource>
            <jndi-name>MysqlDS</jndi-name>
            <connection-url>jdbc:mysql://localhost:3306/test</connection-url>
            <driver-class>org.gjt.mm.mysql.Driver</driver-class>
            <user-name>mysqladmin</user-name>
            mysqladmin
            <min-pool-size>5</min-pool-size>
            <security-domain>MysqlDbRealm</security-domain>
            </local-tx-datasource>

            ---------------------------------------------------------------------

            is it right?

            Jack

            • 3. Re: deploy EJB error
              jackzhuo Newbie

              In my EJB, I use mysql database, because i transfer to jboss-3.2.1, I wrote a datasource configuration file like this named mysql-ds.xml:
              ---------------------------------------------------------------------
              <?xml version="1.0" encoding="UTF-8"?>

              <!-- $Id: hsqldb-ds.xml,v 1.1.2.4 2003/04/22 20:34:33 d_jencks Exp $ -->


              <local-tx-datasource>
              <jndi-name>MysqlDS</jndi-name>
              <connection-url>jdbc:mysql://localhost:3306/test</connection-url>
              <driver-class>org.gjt.mm.mysql.Driver</driver-class>
              <user-name>mysqladmin</user-name>
              mysqladmin
              <min-pool-size>5</min-pool-size>
              <security-domain>MysqlDbRealm</security-domain>
              </local-tx-datasource>

              ---------------------------------------------------------------------

              is it right?

              Jack

              • 4. Re: deploy EJB error
                jackzhuo Newbie

                In my EJB, I use mysql database, because i transfer to jboss-3.2.1, I wrote a datasource configuration file like this named mysql-ds.xml:
                ---------------------------------------------------------------------
                <?xml version="1.0" encoding="UTF-8"?>

                <!-- $Id: hsqldb-ds.xml,v 1.1.2.4 2003/04/22 20:34:33 d_jencks Exp $ -->


                <local-tx-datasource>
                <jndi-name>MysqlDS</jndi-name>
                <connection-url>jdbc:mysql://localhost:3306/test</connection-url>
                <driver-class>org.gjt.mm.mysql.Driver</driver-class>
                <user-name>mysqladmin</user-name>
                mysqladmin
                <min-pool-size>5</min-pool-size>
                <security-domain>MysqlDbRealm</security-domain>
                </local-tx-datasource>

                ---------------------------------------------------------------------

                is it right?

                Jack

                • 5. Re: deploy EJB error
                  jackzhuo Newbie

                  In my EJB, I use mysql database, because i transfer to jboss-3.2.1, I wrote a datasource configuration file like this named mysql-ds.xml:
                  ---------------------------------------------------------------------
                  <?xml version="1.0" encoding="UTF-8"?>

                  <!-- $Id: hsqldb-ds.xml,v 1.1.2.4 2003/04/22 20:34:33 d_jencks Exp $ -->


                  <local-tx-datasource>
                  <jndi-name>MysqlDS</jndi-name>
                  <connection-url>jdbc:mysql://localhost:3306/test</connection-url>
                  <driver-class>org.gjt.mm.mysql.Driver</driver-class>
                  <user-name>mysqladmin</user-name>
                  mysqladmin
                  <min-pool-size>5</min-pool-size>
                  <security-domain>MysqlDbRealm</security-domain>
                  </local-tx-datasource>

                  ---------------------------------------------------------------------

                  is it right?

                  Jack

                  • 6. Re: deploy EJB error
                    Adrian Brock Master

                    What has the mysql deployment got to do with
                    ejb verifications?

                    Regards,
                    Adrian