1 Reply Latest reply on May 25, 2011 3:45 AM by jaikiran pai

    Spring MBean Server Conversion from LazyMBeanServer To MBeanServer

    Kevin Urciolo Newbie

      I am migrating code from JBoss 4.0.5.GA to JBoss 6.0.  Much of the code uses Spring 3.0.3.  I placed the Spring DIST jars in the JBoss common/lib directory.  However, when my applications launch, I get the following error:


      Caused by: java.lang.IllegalStateException: Cannot convert value of type [org.jboss.system.server.jmx.LazyMBeanServer] to required type [javax.management.MBeanServer] for property 'mbeanServer': no matching editors or conversion strategy found

              at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231) [:3.0.3.RELEASE]

              at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:447) [:3.0.3.RELEASE]

              ... 100 more


      Do you know what can cause this type of problem?  It seems the LazyMBeanServer should implement the javax.management.MBeanServer, so I am not sure why it is complaining.  This worked fine in the older version of JBoss.