|
From: Rob H. <ro...@ca...> - 2004-10-01 07:57:10
|
Seth, I have experienced this same error. I am hoping to create a wrapper around the JMX implementations so that Spring will work with them. Currently only 1.2 is supported. Rob Seth Ladd wrote: >Hello, > >Finally got a chance to play with Spring's new JMX code. I'm running >inside Tomcat 5.0.27, and wish to bind my MBeans into Tomcat's builtin >MBeanServer. > >On deploy of my webapp, KeyNamingStrategy throws a NoSuchMethodError >when it tries to call ObjectName.getInstance(String). IIR, that was >added to JMX 1.2. > >It seems that the version of JMX Tomcat 5 uses (found in >$TOMCAT_HOME/bin/jmx.jar) is older than that. Tomcat 5 uses mx4j. > >mx4j didn't added support for getInstance(String) until 21 months ago: >http://cvs.sourceforge.net/viewcvs.py/mx4j/mx4j/src/core/javax/management/ObjectName.java?rev=1.9&view=markup > >So, just a heads up to those experimenting... you might experience >issues trying to use Tomcat 5 and JMX from Spring. It looks like >Tomcat 5 should upgrade it's mx4j library. In the meantime, I've very >excited to get this working! > >Seth > >ps exact stace trace: >2004-09-30 11:38:48 StandardContext[/testbed]Exception sending context >initialized event to listener instance of class >org.springframework.web.context.ContextLoaderListener >java.lang.NoSuchMethodError: >javax.management.ObjectName.getInstance(Ljava/lang/String;)Ljavax/management/ObjectName; > at org.springframework.jmx.naming.KeyNamingStrategy.getObjectName(KeyNamingStrategy.java:32) > at org.springframework.jmx.JmxMBeanAdapter.registerBeans(JmxMBeanAdapter.java:180) > at org.springframework.jmx.JmxMBeanAdapter.postProcessBeanFactory(JmxMBeanAdapter.java:283) > at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:315) > at > > >------------------------------------------------------- >This SF.net email is sponsored by: IT Product Guide on ITManagersJournal >Use IT products in your business? Tell us what you think of them. Give us >Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more >http://productguide.itmanagersjournal.com/guidepromo.tmpl >_______________________________________________ >Springframework-developer mailing list >Spr...@li... >https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > > |