欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

NoClassDefFoundError: org/jboss/mx/util/PropertyAccess JBossJavaSUN 

程序员文章站 2024-01-22 13:23:40
...
  • Caused by: java.lang.NoClassDefFoundError: org/jboss/mx/util/PropertyAccess
  • at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:202)
  • at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:153)
  • at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:147)
  • at sun.management.ManagementFactory.createPlatformMBeanServer(ManagementFactory.java:302)
  • at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:504)
  • at com.mchange.v2.c3p0.management.ActiveManagementCoordinator.<init>(ActiveManagementCoordinator.java:42)
  • at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  • at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
  • at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
  • at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
  • at java.lang.Class.newInstance0(Class.java:355)
  • at java.lang.Class.newInstance(Class.java:308)
  • at com.mchange.v2.c3p0.C3P0Registry.<clinit>(C3P0Registry.java:134)
  • at com.mchange.v2.c3p0.impl.PoolBackedDataSourceBase.<init>(PoolBackedDataSourceBase.java:228)
  • at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.<init>(AbstractPoolBackedDataSource.java:62)
  • at com.mchange.v2.c3p0.ComboPooledDataSource.<init>(ComboPooledDataSource.java:109)
  • at com.mchange.v2.c3p0.ComboPooledDataSource.<init>(ComboPooledDataSource.java:105)
  • at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  • at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
  • at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
  • at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
  • at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:96)
  • ... 57 more


有很多方法说是解决方法: 把J2EE1.4的包去掉
但是去掉J2EE1.4,其他程序会有影响的
后来发现有些类库需要java ee5支持
因此我就把J2EE1.4 换成了java EE5 libsers了
问题解决了
相关标签: JBoss Java SUN