Is this because of the JBoss plugin?

I use the JBoss plugin with JBoss 4.0.0. The project rebuild works for
about five times, then I get the following. Viewing the source of my
page shows that the deployment did not occur. It is also not possible
to undeploy the application.

Error message: Original exception:
org.jboss.deployment.DeploymentException: Failed to create web module; -
nested throwable: (javax.management.InstanceAlreadyExistsException:
jboss.web.deployment:id=1209620884,war=justiceXchange.war already
registered.)

at
org.jboss.web.AbstractWebContainer.create(AbstractWebContainer.java:347)

at org.jboss.deployment.MainDeployer.create(MainDeployer.java:889)

at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:745)

at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)

at sun.reflect.GeneratedMethodAccessor30.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:119)

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:242)

at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)

at sun.reflect.GeneratedMethodAccessor109.invoke(Unknown Source)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at
org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:250)

at sun.reflect.GeneratedMethodAccessor54.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:119)

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:242)

at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)

at
org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:775)

at
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:382)

at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)

at sun.rmi.transport.Transport$1.run(Transport.java:148)

at java.security.AccessController.doPrivileged(Native Method)

at sun.rmi.transport.Transport.serviceCall(Transport.java:144)

at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)

at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)

at java.lang.Thread.run(Thread.java:534)

Caused by: javax.management.InstanceAlreadyExistsException:
jboss.web.deployment:id=1209620884,war=justiceXchange.war 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:119)

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:242)

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.java:1392)

at
org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:359)

at
org.jboss.web.AbstractWebContainer.create(AbstractWebContainer.java:339)

... 41 more


--
Norris Shelton
Sun Certified Java Programmer

3 comments

I just noticed that there is an exception on the last deploy that
worked. It only shows in the server log. This deployment does work,
but the next one is doomed.

org.jboss.deployment.DeploymentException: Failed to create web module; -
nested throwable: (javax.management.InstanceAlreadyExistsException:
jboss.web.deployment:id=1209620884,war=justiceXchange.war already
registered.)
at
org.jboss.web.AbstractWebContainer.create(AbstractWebContainer.java:347)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:889)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:745)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
at sun.reflect.GeneratedMethodAccessor30.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:119)
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:242)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:250)
at sun.reflect.GeneratedMethodAccessor61.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:119)
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:242)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at
org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:775)
at
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:382)
at sun.reflect.GeneratedMethodAccessor60.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)
Caused by: javax.management.InstanceAlreadyExistsException:
jboss.web.deployment:id=1209620884,war=justiceXchange.war 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:119)
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:242)
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.java:1392)
at
org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:359)
at
org.jboss.web.AbstractWebContainer.create(AbstractWebContainer.java:339)
... 41 more

Norris Shelton
Sun Certified Java Programmer




Norris Shelton wrote:

I use the JBoss plugin with JBoss 4.0.0. The project rebuild works
for about five times, then I get the following. Viewing the source of
my page shows that the deployment did not occur. It is also not
possible to undeploy the application.

>

Error message: Original exception:
org.jboss.deployment.DeploymentException: Failed to create web module;
- nested throwable: (javax.management.InstanceAlreadyExistsException:
jboss.web.deployment:id=1209620884,war=justiceXchange.war already
registered.)

>

at
org.jboss.web.AbstractWebContainer.create(AbstractWebContainer.java:347)

>

at org.jboss.deployment.MainDeployer.create(MainDeployer.java:889)

>

at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:745)

>

at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)

>

at sun.reflect.GeneratedMethodAccessor30.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:119)

>
>

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:242)

>
>

at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)

>

at sun.reflect.GeneratedMethodAccessor109.invoke(Unknown Source)

>

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

>
>

at java.lang.reflect.Method.invoke(Method.java:324)

>

at
org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:250)

>
>

at sun.reflect.GeneratedMethodAccessor54.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:119)

>
>

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:242)

>
>

at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)

>

at
org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:775)

>
>

at
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:382)

>

at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)

>

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

>
>

at java.lang.reflect.Method.invoke(Method.java:324)

>

at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)

>

at sun.rmi.transport.Transport$1.run(Transport.java:148)

>

at java.security.AccessController.doPrivileged(Native Method)

>

at sun.rmi.transport.Transport.serviceCall(Transport.java:144)

>

at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)

>

at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)

>
>

at java.lang.Thread.run(Thread.java:534)

>

Caused by: javax.management.InstanceAlreadyExistsException:
jboss.web.deployment:id=1209620884,war=justiceXchange.war 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:119)

>
>

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:242)

>
>

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.java:1392)

>
>

at
org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:359)

>
>

at
org.jboss.web.AbstractWebContainer.create(AbstractWebContainer.java:339)

>

... 41 more

>
>

0

Please be aware that deployment through the JBoss plugin is completely different from standard deployment. Normally you just copy your war file into the deploy directory of JBoss. But the plugin interacts with the JBoss deployer MBean through JMX. Therefore if you deployed your web module previously by copying into the deploy directory and then try to deploy throug the plugin, you'll get exactly such InstanceAlreadyExistsExceptions. (And vice versa...)

By the way: which version of the plugin are you using?

0

2.3

I switched to using an exploded directory (context.war) and deploying
individual files. This fits with development.

Norris Shelton
Sun Certified Java Programmer




Martin Fuhrer wrote:

>Please be aware that deployment through the JBoss plugin is completely different from standard deployment. Normally you just copy your war file into the deploy directory of JBoss. But the plugin interacts with the JBoss deployer MBean through JMX. Therefore if you deployed your web module previously by copying into the deploy directory and then try to deploy throug the plugin, you'll get exactly such InstanceAlreadyExistsExceptions. (And vice versa...)
>
>By the way: which version of the plugin are you using?

>

0

Please sign in to leave a comment.