I was curious why I could not put the queue mbean entry in the jboss-service.xml in my
app's sar file. Is it because I have set "RecursiveSearch" to True in
conf/jboss-service.xml? Could this be causing the problem, since then during
deployment the mbean file gets copied to myapp/tmp/server/myapp/deploy?
Every time I try to deploy a my app with a new Queue mbean with this configuration, it
reports:
--------------------
10:41:43,460 ERROR [MainDeployer] could not create deployment:
file:/usr/local/jboss-3.2.1/server/cadmus_noncluster/deploy/3_rpm_server.sar/
org.jboss.deployment.DeploymentException: create operation failed for package
file:/usr/local/jboss-3.2.1/server/cadmus_noncluster/deploy/3_rpm_server.sar/; -
nested throwable: (org.jboss.deployment.DeploymentException: Trying to install an
already registered mbean: jboss.mq.destination:service=Queue,name=ScheduleChanges)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:202)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:784)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:639)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
at sun.reflect.GeneratedMethodAccessor19.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:549)
-----------------------------------------------------------------------------
My attempts to alleviating this problem have included removing the
server/myapp/tmp/deploy/server/myapp directory after shutting down JBoss (performed
with ctrl-C) and restarting. No effect.
I moved the queue mbean configuration from my app's sar file to my app's
deploy/jms/jbossmq-destinations-service.xml file and THAT worked. Note that it was
moved, not copied - there were no duplicate entries, as confirmed by using grep -ir on
the entire $JBOSS_HOME/server/myapp directory.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3847672#3847672
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3847672
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user