1 2 Previous Next 17 Replies Latest reply on Jun 8, 2006 5:40 PM by Erica Kane

    Failed to deploy Duke's Bank application.

    ALEJANDRO MARFIL Newbie

      Hi guys,

      I'm new to JBOSS and just started learning it. I followed the instruction on compiling and deploying Duke's Bank app, but failed on it. I got this error:


      2005-06-15 02:42:59,702 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@3fefc572{ url=file:/C:/jboss-4.0.2/server/default/deploy/JBossDukesBank.ear, deployedLastModified=1118773635554 }
      org.jboss.deployment.DeploymentException: Error in accessing application metadata: ; - nested throwable: (javax.management.InstanceAlreadyExistsException: jboss.j2ee:service=EARDeployment,url='JBossDukesBank.ear' already registered.)
      at org.jboss.deployment.EARDeployer.init(EARDeployer.java:271)
      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.GeneratedMethodAccessor49.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: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:483)
      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)
      Caused by: javax.management.InstanceAlreadyExistsException: jboss.j2ee:service=EARDeployment,url='JBossDukesBank.ear' already registered.
      at org.jboss.mx.server.registry.BasicMBeanRegistry.add(BasicMBeanRegistry.java:755)
      at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211)
      at sun.reflect.GeneratedMethodAccessor1.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: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.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1407)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1402)
      at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:361)
      at org.jboss.deployment.EARDeployer.init(EARDeployer.java:263)
      ... 21 more


      Hope to hear from you guys soon.

      Thanks,

      Hadji

        • 1. Re: Failed to deploy Duke's Bank application.
          Peter Johnson Master

          According to the error message ('JBossDukesBank.ear' already registered.), it would appear that Duke's Bank is being deployed twice. What are the contents of your deploy directory?

          • 2. Re: Failed to deploy Duke's Bank application.
            Norman Richards Master

            Does this go away when you restart the server? (or at least produce a different error) This looks failed deployment bug where you can't redeploy an application with the same name after certain types of deployment failures.

            • 3. Re: Failed to deploy Duke's Bank application.
              ALEJANDRO MARFIL Newbie

              Actually I already deleted the "JBossDukesBank.ear" file in the deploy directory. Then i tried re-deploying it again but i'm having the same error messages again.

              I didn't had any error in any of the compilation steps prior to assembling of JBossDukesBank.EAR file.. But whenever I try deploying the file, thats where I receive the error.

              • 4. Re: Failed to deploy Duke's Bank application.
                ALEJANDRO MARFIL Newbie

                followup reply,

                Do you know how to UNRegister Duke's Bank application? If i'm going to delete the ear file, would the registration be removed automatically, or do i need to do something after deleting the ear file?

                I think is the cause of my problem deploying the Duke's Bank application.


                Regards to all,

                • 5. Re: Failed to deploy Duke's Bank application.
                  Norman Richards Master

                  Please restart the server and look and see if you get a different message the first time the server tries to deploy the app. You are most likely running into a known deployment bug.

                  • 6. Re: Failed to deploy Duke's Bank application.
                    ALEJANDRO MARFIL Newbie

                    Hi Norman,

                    After restarting the server i got this (part) server logs:

                    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.LocalTxHome': No ClassLoaders found for: com.sun.ebank.ejb.tx.LocalTxHome

                    2005-06-16 00:53:23,961 WARN [org.jboss.ejb.EJBDeployer.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.LocalTx': No ClassLoaders found for: com.sun.ebank.ejb.tx.LocalTx

                    2005-06-16 00:53:23,961 WARN [org.jboss.ejb.EJBDeployer.verifier] EJB spec violation:
                    Bean : TxBean
                    Section: 10.6.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.

                    2005-06-16 00:53:23,961 WARN [org.jboss.ejb.EJBDeployer.verifier] EJB spec violation:
                    Bean : NextIdBean
                    Section: 22.2
                    Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the <ejb-class> element.
                    Info : Class not found on 'com.sun.ebank.ejb.util.NextIdBean': No ClassLoaders found for: com.sun.ebank.ejb.util.NextIdBean

                    2005-06-16 00:53:24,101 DEBUG [org.jboss.ejb.EJBDeployer.verifier] Bean checked: AccountControllerBean: Verified.
                    2005-06-16 00:53:24,112 DEBUG [org.jboss.ejb.EJBDeployer.verifier] Bean checked: CustomerControllerBean: Verified.
                    2005-06-16 00:53:24,122 DEBUG [org.jboss.ejb.EJBDeployer.verifier] Bean checked: TxControllerBean: Verified.
                    2005-06-16 00:53:24,132 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
                    2005-06-16 00:53:24,132 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
                    2005-06-16 00:53:24,132 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
                    2005-06-16 00:53:24,122 ERROR [org.jboss.deployment.MainDeployer] could not create deployment: file:/C:/jboss-4.0.2/server/default/tmp/deploy/tmp45541JBossDukesBank.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)

                    Does this mean that compilatin failed to include important class files inside the EAR application?

                    Thanks,

                    Hadji

                    • 7. Re: Failed to deploy Duke's Bank application.
                      Norman Richards Master

                      Great, so we can see from this that the other error was just the redeployment bug. On certain types of fatal deployment errors like this, JBoss gets in a state where it cannot redeploy a package with a given name. The workaround is to just restart.

                      As to the real error here, the most likely problem is that you are not using the correct version of the sun J2EE tutorial for the this particular getting started guide. Sun changed their code a lot last year, and you have to be really careful to get the right version. Please check the versions and try again.

                      • 8. Re: Failed to deploy Duke's Bank application.
                        Jens Schoedt Newbie

                        Could you specify the version.... there are 3 and none of them seems to work

                        • 9. Re: Failed to deploy Duke's Bank application.
                          Afdzal Kamal Newbie

                          schodt...

                          I am also a newbee here.

                          Take the latest version and make sure you unzip the J2EE tutorial first before you combine it with the one from JBoss. Hope that works.



                          • 10. Re: Failed to deploy Duke's Bank application.
                            Afdzal Kamal Newbie

                            the one from from JBoss (jbossj2ee-src.zip) should overwrite j2eetutorial14, not the other way round.

                            • 11. Re: Failed to deploy Duke's Bank application.
                              Luc De Graef Newbie

                              Hello,

                              I (another Newbie) am having the same problem. I downloaded the
                              j2eetutorial14.zip from some external site. Can you tell me where I can download the correct version ?

                              Thanks

                              Luc

                              • 12. Re: Failed to deploy Duke's Bank application.
                                Luc De Graef Newbie

                                You may disregard previous message.... After reading replys in other threads I found the location.

                                Luc

                                • 13. Re: Failed to deploy Duke's Bank application.
                                  Yuri Plakosh Newbie

                                  I have the same problem and cannot find the right j2eetutorial14.zip and jbossj2ee-src.zip. Can somebody give me the direct links to them?

                                  • 14. Re: Failed to deploy Duke's Bank application.
                                    Afdzal Kamal Newbie

                                     

                                    "yuri.plakosh" wrote:
                                    I have the same problem and cannot find the right j2eetutorial14.zip and jbossj2ee-src.zip. Can somebody give me the direct links to them?


                                    http://java.sun.com/j2ee/1.4/download.html#tutorial

                                    1 2 Previous Next