-
1. Re: InstanceAlreadyExistsException During hot deployment
mircea.markus Sep 28, 2009 3:51 AM (in response to pavnesh)you can disable the jmx statistics in JBossCache, but that would rather be a workaround.
<jmxStatistics enabled="false"/>
You should check why the MBean with the given name doesn't get unregistered. -
2. Re: InstanceAlreadyExistsException During hot deployment
pavnesh Sep 28, 2009 3:33 PM (in response to pavnesh)Disabling jmxStatistics does not help. I still got the same issue. But after doing more research, I came to know that this is the problem (or feature not sure :) ) with Websphere AS.
I am trying to find out the solutions. If in the mean time, someone comes across some solution/workaround, please post here.
Thanks, -
3. Re: InstanceAlreadyExistsException During hot deployment
pavnesh Sep 28, 2009 4:41 PM (in response to pavnesh)Thanks Mircea.Markus.
Some more information:
Websphere appends cellName, nodeName and server name (node1) to whever ClusterName I specify in the treecache.xml. During hot deployment, jboss cache jars try to find if there is any MBean with name TreeCache-Cluster. It does not find any and tries to create a new MBean with Name TreeCache-Cluster. In the process, websphere again appends the same information (cellName, nodeName ...etc) and it finds that there is bean with this name already exists and hence I get the exception.
For the sake of experiment: I gave the name to ClusterName attribute asTreeCache-Cluster,cell=TD2471N
, which Websphere was complaining. And it all started working OK.
ode01Cell,node=TD2471Node01,process=server1
But this definitely not a solution because this information is machine specific.
Let me know how to fix it.
Thanks, -
4. Re: InstanceAlreadyExistsException During hot deployment
mircea.markus Sep 29, 2009 4:22 AM (in response to pavnesh)Once you disabled the jmxStats, JBossCache does not try to bind anything to the mbean server. Even more, the mbean object name for JBC3.0.0 or greater should be jboss.cache:service=JBossCache, and not jboss.cache:service=TreeCache. Can you double check the JBC version you are using?
-
5. Re: InstanceAlreadyExistsException During hot deployment
pavnesh Sep 29, 2009 9:25 PM (in response to pavnesh)Thanks Mircea.Markus for pointing me in right direction.
I am able to fix the problem. I upgraded my cache jars to 'Malagueta' version of JBC 3.2.0GA. Also there was one old jar file of JBC which was creating the conflict. Then I also tested the cluster name other than jboss.cache:service=TreeCache and that worked all well, no issues. :)[/img]