Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2006

Tip: Looking for answers? Try searching our database.

Error while deploying sar file into JBoss

Thread view: 
ameeta - 25 May 2006 07:45 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.