0 Replies Latest reply on Dec 3, 2004 2:55 AM by chua yewkuan

    JBossDukesBank Deployment Issue - in accessing Application m

    chua yewkuan Newbie

      Hi,

      I am really new to JBoss. This is the first time I tried on JBoss. I refer to 'Getting Started with JBoss 4.0 Release 2', chapter 4 The Duke's Bank Application.
      It appears to me that no errors during creation of EAR (compile, package-ejb, package-web, package-client, assemble-app). However, when I deployed, messages below appeared.

      Please help .......

      Thank you so much.

      xxxxxxxxxxxxxxxxxxxxxxxxxxx

      15:42:51,968 INFO [EARDeployer] Init J2EE application: file:/C:/jboss-4.0.1RC1/
      server/default/deploy/JBossDukesBank.ear
      15:42:52,031 INFO [EARDeployment] Registration is not done -> stop
      15:42:52,031 ERROR [MainDeployer] Could not initialise deployment: file:/C:/jbos
      s-4.0.1RC1/server/default/deploy/JBossDukesBank.ear
      org.jboss.deployment.DeploymentException: Error in accessing application metadat
      a: ; - nested throwable:
      (javax.management.InstanceAlreadyExistsException: jboss
      .j2ee:service=EARDeployment,url='JBossDukesBank.ear' already registered.)
      at org.jboss.deployment.EARDeployer.init(EARDeployer.java:270)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:808)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:745)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:718)
      at sun.reflect.GeneratedMethodAccessor31.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.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:144)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
      or.java:122)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
      BeanOperationInterceptor.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(URLDeploymen
      tScanner.java:305)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
      canner.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)
      Caused by: javax.management.InstanceAlreadyExistsException: jboss.j2ee:service=E
      ARDeployment,url='JBossDukesBank.ear' already registered.
      at org.jboss.mx.server.registry.BasicMBeanRegistry.add(BasicMBeanRegistr
      y.java:755)
      at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMB
      eanRegistry.java:211)
      at sun.reflect.GeneratedMethodAccessor1.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.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:144)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
      or.java:122)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
      BeanOperationInterceptor.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.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1397)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.jav
      a:1392)
      at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.jav
      a:359)
      at org.jboss.deployment.EARDeployer.init(EARDeployer.java:262)
      ... 21 more

      xxxxxxxxxxxxxxxxxxxxxxxxxxxx