13 Replies Latest reply on Mar 30, 2006 12:56 PM by huanghao

    Failed to Deploy Duke's Bank org.jboss.deployment.Deployment

    gsilverm

      JBoss 4.0.1 J2EE v1.4.0.1 J2eeTutorial "j2eetutorial14"

      Built everything per JBoss StartGuide.pdf,
      Deployed hsqldb - no prob, verified using HSQL Database Viewer and ran queries to see data for tutorial.

      Upon deployment, via command
      ant -f jboss-build.xml deploy

      Got a deployment error of: org.jboss.deployment.DeploymentException

      Here is trace snipit.

      2004-12-25 16:50:08,390 DEBUG [org.jboss.ejb.EJBDeployer.verifier] Bean checked: AccountControllerBean: Verified.
      2004-12-25 16:50:08,390 DEBUG [org.jboss.ejb.EJBDeployer.verifier] Bean checked: CustomerControllerBean: Verified.
      2004-12-25 16:50:08,406 DEBUG [org.jboss.ejb.EJBDeployer.verifier] Bean checked: TxControllerBean: Verified.
      2004-12-25 16:50:08,406 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
      2004-12-25 16:50:08,406 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
      2004-12-25 16:50:08,406 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
      2004-12-25 16:50:08,406 ERROR [org.jboss.deployment.MainDeployer] could not create deployment: file:/C:/Tools/JBoss/jboss-4.0.1/server/default/tmp/deploy/tmp53675JBossDukesBank.ear-contents/bank-ejb.jar
      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:553)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:918)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:910)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:774)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
      at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
      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:642)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy8.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481)
      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)


      All beans failed to load

      Any assistance would be highly appreciated.

      Thanks.

        • 1. Re: Failed to Deploy Duke's Bank org.jboss.deployment.Deploy
          gsilverm

          Well, after much research I found out that the problem lied with the source provided Sun. It seems that the release named

          "J2EE 1.4 Tutorial Update 4 (for Sun Java System Application Server Platform Edition 8.1 2005Q1 Release Candidate) December 20, 2004 " INCLUDES INCORRECT CODE.

          I tool the release called

          "J2EE 1.4 Tutorial Update 2 (for Sun Java System Application Server Platform Edition 8 Update 1) June 22, 2004" which is older by the way, and it worked like a charm.

          Thanks

          • 2. Re: Failed to Deploy Duke's Bank org.jboss.deployment.Deploy
            rtg

            Hi,
            I spent couple of hours on the same problem.
            Thanks for your post.
            Rtg

            • 3. Re: Failed to Deploy Duke's Bank org.jboss.deployment.Deploy

              This has been mentioned in other threads, but just to be clear: the use update 2 or update 3 for the current getting started guide. Sun has made some changes in update 4 that we will incorporate in the next revision of the getting started guide. (coming soon)

              • 4. Re: Failed to Deploy Duke's Bank org.jboss.deployment.Deploy
                nkumarorcc

                It would be nice if the same could be mentioned in bold letters in the online documentation. It'll save each of us couple of hours if not more.

                • 5. Re: Failed to Deploy Duke's Bank org.jboss.deployment.Deploy

                  Sorry for any confusion. The next revision will be out in a couple weeks and will have these updates and work with update 4 of the j2ee tutorial.

                  • 6. Re: Failed to Deploy Duke's Bank org.jboss.deployment.Deploy
                    jhhdk

                    This problem seem to have returned unless it was never fixed. How do I fix it?

                    13:43:43,781 ERROR [MainDeployer] could not create deployment: file:/C:/tools/jboss-4.0.1RC1/server/default/tmp/deploy/tmp61598JBossDukesBank.ear-contents/bank-ejb.jar org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
                    at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:553)
                    at org.jboss.deployment.MainDeployer.create(MainDeployer.java:898)
                    at org.jboss.deployment.MainDeployer.create(MainDeployer.java:890)
                    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:754)
                    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:718)
                    at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                    at java.lang.reflect.Method.invoke(Method.java:324)
                    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
                    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
                    at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
                    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:642)
                    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:175)
                    at $Proxy8.deploy(Unknown Source)
                    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
                    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481)
                    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)
                    13:43:43,921 ERROR [MainDeployer] could not create deployment: file:/C:/tools/jboss-4.0.1RC1/server/default/deploy/JBossDukesBank.ear org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
                    at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:553)
                    at org.jboss.deployment.MainDeployer.create(MainDeployer.java:898)
                    at org.jboss.deployment.MainDeployer.create(MainDeployer.java:890)
                    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:754)
                    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:718)
                    at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                    at java.lang.reflect.Method.invoke(Method.java:324)
                    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
                    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
                    at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
                    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:642)
                    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:175)
                    at $Proxy8.deploy(Unknown Source)
                    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
                    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481)
                    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)

                    • 7. Re: Failed to Deploy Duke's Bank org.jboss.deployment.Deploy
                      fisherv

                      I also had the same error and downloaded from Sun and JBoss in June. Anyone else still having this same problem?

                      Excerpt:

                      18:05:58,845 ERROR [MainDeployer] could not create deployment: file:/C:/jboss-4.0.2/server/default/tmp/deploy/
                      tmp17633JBossDukesBank.ear-contents/bank-ejb.jar
                      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error message
                      s.

                      Thanks!

                      • 8. Re: Failed to Deploy Duke's Bank org.jboss.deployment.Deploy
                        schodt

                        I have tried with all 3 tutorials on http://java.sun.com/j2ee/1.4/download.html#tutorial

                        on jboss-4.0.3SP1

                        none of them work....? All give the same result:

                        23:23:29,633 INFO [EJBDeployer] Undeploying: file:/Applications/jboss-4.0.3SP1/server/default/tmp/deploy/tmp5310JBossDukesBank.ear-contents/bank-ejb.jar
                        23:23:29,860 INFO [EARDeployer] Undeploying J2EE application, destroy step: file:/Applications/jboss-4.0.3SP1/server/default/deploy/JBossDukesBank.ear
                        23:23:29,949 INFO [EARDeployer] Init J2EE application: file:/Applications/jboss-4.0.3SP1/server/default/deploy/JBossDukesBank.ear
                        23:23:31,334 WARN [verifier] EJB spec violation:
                        Bean : CustomerBean
                        Section: 12.2.2
                        Warning: The class must be defined as public and must not be abstract.

                        23:23:31,453 WARN [verifier] EJB spec violation:
                        Bean : CustomerBean
                        Section: 12.2.5
                        Warning: Every entity bean must define the ejbFindByPrimaryKey method.

                        23:23:31,498 WARN [verifier] EJB spec violation:
                        Bean : CustomerBean
                        Section: 22.2
                        Warning: The bean provider must specify the fully-qualified name of the enterprise bean's local home interface, if any, in the <local-home> element.
                        Info : Class not found on 'com.sun.ebank.ejb.customer.CustomerHome': No ClassLoaders found for: com.sun.ebank.ejb.customer.CustomerHome

                        23:23:31,518 WARN [verifier] EJB spec violation:
                        Bean : CustomerBean
                        Section: 22.2
                        Warning: The bean provider must specify the fully-qualified name of the enterprise bean's local interface, if any, in the element.
                        Info : Class not found on 'com.sun.ebank.ejb.customer.Customer': No ClassLoaders found for: com.sun.ebank.ejb.customer.Customer

                        23:23:31,522 WARN [verifier] EJB spec violation:
                        Bean : CustomerBean
                        Section: 12.2.1
                        Warning: The Bean Provider must provide a remote interface and a remote home interface or a local interface and a local home interface for the bean.

                        23:23:31,539 WARN [verifier] EJB spec violation:
                        Bean : AccountBean
                        Section: 12.2.2
                        Warning: The class must be defined as public and must not be abstract.

                        23:23:31,649 WARN [verifier] EJB spec violation:
                        Bean : AccountBean
                        Section: 12.2.5
                        Warning: Every entity bean must define the ejbFindByPrimaryKey method.

                        23:23:31,658 WARN [verifier] EJB spec violation:
                        Bean : AccountBean
                        Section: 22.2
                        Warning: The bean provider must specify the fully-qualified name of the enterprise bean's local home interface, if any, in the <local-home> element.
                        Info : Class not found on 'com.sun.ebank.ejb.account.AccountHome': No ClassLoaders found for: com.sun.ebank.ejb.account.AccountHome

                        23:23:31,665 WARN [verifier] EJB spec violation:
                        Bean : AccountBean
                        Section: 22.2
                        Warning: The bean provider must specify the fully-qualified name of the enterprise bean's local interface, if any, in the element.
                        Info : Class not found on 'com.sun.ebank.ejb.account.Account': No ClassLoaders found for: com.sun.ebank.ejb.account.Account

                        23:23:31,669 WARN [verifier] EJB spec violation:
                        Bean : AccountBean
                        Section: 12.2.1
                        Warning: The Bean Provider must provide a remote interface and a remote home interface or a local interface and a local home interface for the bean.

                        23:23:31,690 WARN [verifier] EJB spec violation:
                        Bean : TxBean
                        Section: 12.2.2
                        Warning: The class must be defined as public and must not be abstract.

                        23:23:31,700 WARN [verifier] EJB spec violation:
                        Bean : TxBean
                        Section: 12.2.5
                        Warning: Every entity bean must define the ejbFindByPrimaryKey method.

                        23:23:31,707 WARN [verifier] EJB spec violation:
                        Bean : TxBean
                        Section: 22.2
                        Warning: The bean provider must specify the fully-qualified name of the enterprise bean's local home interface, if any, in the <local-home> element.
                        Info : Class not found on 'com.sun.ebank.ejb.tx.TxHome': No ClassLoaders found for: com.sun.ebank.ejb.tx.TxHome

                        23:23:31,713 WARN [verifier] EJB spec violation:
                        Bean : TxBean
                        Section: 22.2
                        Warning: The bean provider must specify the fully-qualified name of the enterprise bean's local interface, if any, in the element.
                        Info : Class not found on 'com.sun.ebank.ejb.tx.Tx': No ClassLoaders found for: com.sun.ebank.ejb.tx.Tx

                        23:23:31,721 WARN [verifier] EJB spec violation:
                        Bean : TxBean
                        Section: 12.2.1
                        Warning: The Bean Provider must provide a remote interface and a remote home interface or a local interface and a local home interface for the bean.

                        23:23:32,023 ERROR [MainDeployer] Could not create deployment: file:/Applications/jboss-4.0.3SP1/server/default/tmp/deploy/tmp5311JBossDukesBank.ear-contents/bank-ejb.jar
                        org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, 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(DelegatingMethodAccessorImpl.java:25)
                        at java.lang.reflect.Method.invoke(Method.java:585)
                        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:118)
                        at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
                        at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:80)
                        at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                        at $Proxy35.create(Unknown Source)
                        at org.jboss.deployment.MainDeployer.create(MainDeployer.java:935)
                        at org.jboss.deployment.MainDeployer.create(MainDeployer.java:925)
                        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:789)
                        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
                        at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                        at java.lang.reflect.Method.invoke(Method.java:585)
                        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:118)
                        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:245)
                        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                        at $Proxy6.deploy(Unknown Source)
                        at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
                        at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:489)
                        at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
                        at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)
                        at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182)

                        • 9. Re: Failed to Deploy Duke's Bank org.jboss.deployment.Deploy
                          axworthy

                          Hi,

                          These classes are defined as abstract along with all the business methods. A work around is to remove abstract and for the methods create real implementations. More work than what most would care want to take on for what is supposed to be an example.

                          I am not aware of the correct version of the SUN J2EE examples that does not have this probelm. Let me know if you find out.

                          • 10. Re: Failed to Deploy Duke's Bank org.jboss.deployment.Deploy
                            axworthy

                             

                            "axworthy" wrote:
                            Hi,

                            These classes are defined as abstract along with all the business methods. A work around is to remove abstract and for the methods create real implementations. More work than what most would care want to take on for what is supposed to be an example.

                            I am not aware of the correct version of the SUN J2EE examples that does not have this probelm. Let me know if you find out.


                            Try j2ee-1_4-doc-tutorial_2.zip. That should do the trick.

                            • 11. Re: Failed to Deploy Duke's Bank org.jboss.deployment.Deploy
                              dvasu

                              This version works fine for me.

                              J2EE 1.4 Tutorial Update 2 (for Sun Java System Application Server Platform Edition 8 Update 1) June 22, 2004


                              DO NOT USE the following LATEST J2EE Tutorial update
                              J2EE 1.4 Tutorial Update 6 (for Sun Java System Application Server Platform Edition 8.1 2005Q2 UR2) September 15, 2005

                              I think its a good idea to include a link to this tutorial (Update 2) from the JBoss Tutorial page. Folks are spending a lot of time in trying to figure out whats going on.

                              • 12. Re: Failed to Deploy Duke's Bank org.jboss.deployment.Deploy

                                 

                                "dvasu" wrote:

                                I think its a good idea to include a link to this tutorial (Update 2) from the JBoss Tutorial page. Folks are spending a lot of time in trying to figure out whats going on.



                                I agree!!!!! This version "issue" costs the whole afternoon!! Although i am new to Jboss since yesterday, it should not have been like that! i would suggest: not only give a link to the J2EE 1.4 Tutorial(Update 4), but also make update correction in the Jboss get started tut. It really costs us lots of time!

                                But on the other hand, i am really happy to see an so active community which finally have the prob solved for me! Thanks you all:-)


                                • 13. Re: Failed to Deploy Duke's Bank org.jboss.deployment.Deploy

                                   

                                  "HuangHao" wrote:
                                  "dvasu" wrote:

                                  ...: not only give a link to the J2EE 1.4 Tutorial(Update 4), but also...


                                  sorry, i made a mistake again! It should be:

                                  not only give a link to the J2EE 1.4 Tutorial(Update 2), but also...


                                  see, it's really confusing.....