mx4j/src/core/mx4j/server MX4JMBeanServer.java,1.23,1.24
Simone Bordet <[email protected]> Sun, 21 Nov 2004 14:16:06 +0000
| Newsgroups | gmane.comp.java.mx4j.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mx4j/mx4j/src/core/mx4j/server
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23521/src/core/mx4j/server
Modified Files:
MX4JMBeanServer.java
Log Message:
Fix for when mx4j is in bootclasspath: add to the ClassLoaderRepository also the system classloader.
Index: MX4JMBeanServer.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/core/mx4j/server/MX4JMBeanServer.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** MX4JMBeanServer.java 13 Nov 2004 16:38:29 -0000 1.23
--- MX4JMBeanServer.java 21 Nov 2004 14:16:03 -0000 1.24
***************
*** 143,146 ****
--- 143,148 ----
// JMX 1.2 requires the CLR to have as first entry the classloader of this class
classLoaderRepository.addClassLoader(getClass().getClassLoader());
+ // The system classloader must be there as well, in case this class is in the bootclasspath
+ classLoaderRepository.addClassLoader(ClassLoader.getSystemClassLoader());
introspector = new MBeanIntrospector();
-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8