Re: problem with MX4J, JAVA 5.0, dynamic mbeans
"Simone Bordet" <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, > How do I force the application to use mx4j instead of JMX shipped with java > 5.0? > > I tried putting MX4j in the bootclasspath but I am getting following error > while creating the mbeanserver > java.lang.Error: java.lang.NullPointerException > at > mx4j.server.MBeanMetaData$Factory.create(MBeanMetaData.java:180) Which version of MX4J you're using ? This bug should have been fixed long ago. Try to upgrade to 3.0.2. > I also tried using > -Djavax.management.builder.initial=mx4j.server.MX4JMBeanServerBuilder > with out putting mx4j classes them in the case path, now it comes up > propertly (using the MX4J class to create the mbeanserver, I guess) , but is > it not all replacing all JAVA 5.0 JMX classes with MX4J classes. i.e it is > not using the MX4J implementation of RequiredModelMBean class. > > In short how do I force the application to use mx4j instead of Java 5.0 JMX. > If that is not possible, is there any way to force the application to use > MX4J implementation of RequiredModelMBean instead of Java 5.0 > implemenataion. You have to put the classes in bootclasspath before the JDK ones. Using the proper version of MX4J should solve the problem. Simon -- http://bordet.blogspot.com ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/