I implemented a ServiceMBean. My service uses "commons-logging.jar, commons-beanutils.jar, commons-digester.jar, commons-collections.jar". I deploy my service as a "sar" and I have put all these jars in that sar. My service starts fine.
There is another serivce inside of Jboss, "jbossweb.sar" which uses the same set of jars and I am getting a Linkage error, during the start up of this service. How can I resolve this? I am using jboss4.0-DR2.
Is there a way that I can limit the scope of the class loader to the SAR?
You're probably adding different versions of the commons-* libraries that may have incompatible changes in the interfaces and/or class signatures.
You should isolate your deployment with the <loader-repository> tag in the jboss-service.xml of your SAR archive.