Hi all,
I am new to this group as weell to JBoss..
I am facing the same problem listed at this url:
http://groups.google.co.in/group/comp.lang.java.programmer/browse_thread/thread/
3951405ff52bfe3a/7ced7a7337987249?lnk=st&q=MBean+already+registered+error+in+JBo
ss&rnum=3&hl=en&utoken=NdzCdjwAAAChVnzRiVbNNwyUcBrliyCNPQ1L4RzPjRdWta_JUQD8gadQY
i_jGQo-tv8ZDeS3But8a1bjKMI5KLSJgdH-U8p1
But my prolem is not getting solved with the answer given.
I am using JBoss version 4.0.2
Things I have done:
I have a SAR file à drawExample.sar which has following structure:
+ Conf
Jboss-service.xml
+ META-INF
MANEFES.MF
Jboss-service.xml
+ Drawexample
CheckForDraw.class
CheckForDrawMBean.class
DBConnection.class
Now When I start my jobss server it starts smoothly but the moment I
place drawExample.sar file under C:\jboss-4.0.2\server\default\deploy
folder system gives following error:
11:37:41,801 ERROR [MainDeployer] could not create deployment:
file:/C:/jboss-4.0.2/server/default/deploy/drawExample.sar
org.jboss.deployment.DeploymentException: Trying to install an already
registered mbean: drawexample:service=CheckForDraw
I am just not getting what to do? I don't know from where system is
registering my service in advance.I deleted the tmp folder & rechecked
but just not getting the thing working ;(
Anybody here know the solution?
Thanks in advance,
Thanks & Regards,
Ameeta
Owen Jacobson - 26 May 2006 03:29 GMT
> I have a SAR file à drawExample.sar which has following structure:
>
[quoted text clipped - 17 lines]
> org.jboss.deployment.DeploymentException: Trying to install an already
> registered mbean: drawexample:service=CheckForDraw
You have some other deployment unit (another sar file, or a
...-service.xml file, probably) that declares an identically-named MBean.
Good documentation and the grep command (or the windows Search tool) is
your best bet for solving this.