-
1. Re: Setting classpath on MBean when using different loader r
rfoyle Aug 21, 2002 6:41 PM (in response to rfoyle)I can look up my classes at through the JMX viewer
Here is what I see:
MBean Name: repository:application=myEar.ear
MBean Java Class: org.jboss.mx.loading.HeirarchicalLoaderRepository
It lists the Jars and Sars. And I can lookup the class in question which returns fine.
My problem is what to put in:
in the MBean descriptor file that is in my Sar file. -
2. Re: Setting classpath on MBean when using different loader r
davidjencks Aug 21, 2002 11:02 PM (in response to rfoyle)I don't think the classpath element will have any effect on this. It's possible that the scoped classloading isn't working properly for mbeans except in jboss 4, so you might try that and report the results.
-
3. Re: Setting classpath on MBean when using different loader r
rfoyle Aug 22, 2002 10:43 AM (in response to rfoyle)Jboss 4? Didn't see anything on sourceforge or jboss.org regarding this version.
Are there other approaches that might work in the current release of JBoss? I need startup classes (mbean) and need to isolate some classes that run because of versioning/classpath issues... Again any help is greatly appreciated!
-Rich -
4. Re: Setting classpath on MBean when using different loader r
adrian.brock Aug 22, 2002 10:58 AM (in response to rfoyle)Didn't Scott fix this?
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/jmx/src/main/org/jboss/mx/server/registry/BasicMBeanRegistry.java?only_with_tag=Branch_3_0
The fix should be available when 3.0.2 is released
otherwise you'll have to get Branch_3_0 from CVS
Regards,
Adrian -
5. Re: Setting classpath on MBean when using different loader r
rfoyle Aug 22, 2002 6:01 PM (in response to rfoyle)Given that this fix is in a future yet to be *released* version. Is there a workaround that you could suggest?
Thanks,
Rich -
6. Re: Setting classpath on MBean when using different loader r
adrian.brock Aug 23, 2002 6:19 AM (in response to rfoyle)Checkout Branch_3_0 from CVS and build 3.0.2 yourself?
Or patch jboss-jmx.jar with the fixed version of the
registry mentioned above?
Regards,
Adrian