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.
Can you post the entire exception stacktrace? Also are you packaging any jar files containing javax.management.* classes in your application? If yes, then remove such jars from your application packaging.