7 Replies Latest reply on Apr 25, 2006 4:33 PM by jjdepaul

    Error trying to deploy a .ear file

    rsood72

      I have Jboss 3.2.3. If I run the server independently of the ide, the .ear file deploys without any problems.
      I decided to use JBoss's eclipse IDE so that I could debug the beans, I created the jars and the ear using packaging configurations.
      Started the app server from withiin the ide and then tried to deploy the .ear file.
      I get the following error when I do this.
      09:07:36,758 ERROR [MainDeployer] could not create deployment: file:/C:/jboss-3.2.3/server/default/tmp/deploy/tmp57295TLPE_JBoss.ear-contents/JBoss_entities.jar
      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:491)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:778)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor44.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:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      09:07:36,768 ERROR [MainDeployer] could not create deployment: file:/C:/jboss-3.2.3/server/default/deploy/TLPE_JBoss.ear
      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:491)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:778)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor44.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:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)

      As you can see it does not give me any reason for why it failed to deploy, just tells me it did so ...could anyone shed light on why the same ear deploys fine when not run from within IDE but presents a problem if trying to deploy from within IDE...

      Any information would be appreciated. Thanks.

        • 1. Re: Error trying to deploy a .ear file
          sphinx88

          i use the same software..however i never encountered this issue. did you ever resolve your problem???

          • 2. Re: Error trying to deploy a .ear file
            rsood72

            no Never resolved the problem. I did notice that in my libraries I include a .jar file a the client side, this file has the same serever files that the .ear has.. I create new jars of these server files and bundle them into .ear and try to deploy them but i do not recreate the .jar that in include at client side,
            should I ....
            I have managed to run Jboss from within my ide and pointed to the src code. If I hit a breakpoint in the bean, my ide takes me there but I am not able to see the values of the variables since they can not be resolved. Sometimes I am able to see the values of the variables...

            Do you know what could be going on ? What am I doing wrong ? Also maybe you could send me the exact steps you followed to get it to work.

            • 3. Re: Error trying to deploy a .ear file
              rsood72

              no Never resolved the problem. I did notice that in my libraries I include a .jar file a the client side, this file has the same serever files that the .ear has.. I create new jars of these server files and bundle them into .ear and try to deploy them but i do not recreate the .jar that in include at client side,
              should I ....
              I have managed to run Jboss from within my ide and pointed to the src code. If I hit a breakpoint in the bean, my ide takes me there but I am not able to see the values of the variables since they can not be resolved. Sometimes I am able to see the values of the variables...

              Do you know what could be going on ? What am I doing wrong ? Also maybe you could send me the exact steps you followed to get it to work.

              • 4. Re: Error trying to deploy a .ear file
                green-cat-fed

                hi i am getting the same error message..i tried to follow the same way as it is told in the getting started guide.. iam just using ant as described..but i got deployment problem. i am using jboss-4.0.4RC2...is this server has any problem??


                01:20:42,288 WARN [verifier] EJB spec violation:
                Bean : TxBean
                Section: 12.2.1
                Warning: The Bean Provider must provide a remote interface and a remote home int
                erface or a local interface and a local home interface for the bean.

                01:20:42,524 ERROR [MainDeployer] Could not create deployment: file:/opt/jboss/j
                boss-4.0.4RC2/server/default/tmp/deploy/tmp44613JBossDukesBank.ear-contents/bank
                -ejb.jar
                org.jboss.deployment.DeploymentException: Verification of Enterprise Beans faile
                d, see above for error messages.
                at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:594)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
                java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                sorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:585)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
                er.java:155)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
                or.java:133)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
                BeanOperationInterceptor.java:142)
                at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor
                .java:97)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
                java:260)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
                at $Proxy26.create(Unknown Source)
                at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
                at org.jboss.deployment.MainDeployer.create(MainDeployer.java:943)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
                at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                sorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:585)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
                er.java:155)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept or.java:133)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM BeanOperationInterceptor.java:142)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker. java:260)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
                at $Proxy8.deploy(Unknown Source)
                at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen tScanner.java:334)
                at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS canner.java:522)
                at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. doScan(AbstractDeploymentScanner.java:207)
                at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. loop(AbstractDeploymentScanner.java:218)
                at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. run(AbstractDeploymentScanner.java:197)

                • 5. Re: Error trying to deploy a .ear file
                  hitarth

                  I guess we all r sailing in same boat..

                  i too got this error:::

                  05:41:31,180 INFO [EARDeployer] Init J2EE application: file:/C:/Program Files/jboss-4.0.2/jboss-4.0.2/server/default/deploy/FiboApp.ear
                  05:41:31,260 ERROR [MainDeployer] Could not initialise deployment: file:/C:/Program Files/jboss-4.0.2/jboss-4.0.2/server/default/deploy/FiboApp.ear
                  org.jboss.deployment.DeploymentException: No META-INF/application.xml found
                  at org.jboss.deployment.EARDeployer.init(EARDeployer.java:120)
                  at org.jboss.deployment.MainDeployer.init(MainDeployer.java:828)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:765)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
                  at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                  at java.lang.reflect.Method.invoke(Unknown Source)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                  at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                  at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
                  at $Proxy8.deploy(Unknown Source)
                  at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:325)
                  at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:501)
                  at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
                  at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
                  at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)
                  05:42:32,177 INFO [EARDeployer] Init J2EE application: file:/C:/Program Files/jboss-4.0.2/jboss-4.0.2/server/default/deploy/FiboApp.ear
                  05:42:32,187 ERROR [MainDeployer] Could not initialise deployment: file:/C:/Program Files/jboss-4.0.2/jboss-4.0.2/server/default/deploy/FiboApp.ear
                  org.jboss.deployment.DeploymentException: No META-INF/application.xml found
                  at org.jboss.deployment.EARDeployer.init(EARDeployer.java:120)
                  at org.jboss.deployment.MainDeployer.init(MainDeployer.java:828)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:765)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
                  at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                  at java.lang.reflect.Method.invoke(Unknown Source)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                  at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                  at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
                  at $Proxy8.deploy(Unknown Source)
                  at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:325)
                  at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:501)
                  at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
                  at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
                  at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)


                  Does anyone able to solve this problem???

                  • 6. Re: Error trying to deploy a .ear file
                    jjdepaul

                    I've successfully built the Duke's Bank app on JBoss 4.0.x (JDK1.4) and was doing pretty good until I got to the deployment step - I'm getting this error too - could someone PLEASE advise:

                    ---------------------------------------------
                    21:57:20,089 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.
                    0.3SP1/server/default/tmp/deploy/tmp43967JBossDukesBank.ear-contents/bank-ejb.ja
                    r
                    org.jboss.deployment.DeploymentException: Verification of Enterprise Beans faile
                    d, see above for error messages.
                    at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:575)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
                    java:39)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                    sorImpl.java:25)
                    at java.lang.reflect.Method.invoke(Method.java:324)
                    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
                    er.java:141)
                    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
                    or.java:118)
                    at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM


                    • 7. Re: Error trying to deploy a .ear file
                      jjdepaul

                      I finally figured out how to properly deploy the Duke Bank example tutorial code... another post on this site gave me a clue...

                      I had to get earlier version (Version2) of the Sun Tutorial code and NOT the default version of the Sun tutorial to make it work on JBoss 4.0.3SP1.

                      In order to get the proper version of the tutorial source, navigate here: http://java.sun.com/j2ee/1.4/download.html scroll all the way down to the bottom of the page and hit "Earlier Releases" link on the bottom of the page, then scroll to the ver bottom of the download page there. I downloaded the "J2EE 1.4 Tutorial Update 2 (for Sun Java System Application Server Platform Edition 8 Update 1) June 22, 2004 " - using this code base I was able to build AND deploy successfully...

                      Good luck to all -
                      James