无法启动JBoss

时间:2011-07-29 05:26:05

标签: jboss jboss-4.2.x

我正在研究JBoss并且最近在deploy.sar的jbossws文件夹中包含了一些jars(jbossws-core.jar,jbossws-common.jar,jbossws-spi.jar)。它工作正常一段时间然后突然声明抛出以下错误:

10:12:47,482 WARN  [BasicMBeanRegistry] preRegister() failed for jbss.system:service=ServiceController:
java.lang.NoSuchMethodError: org.jboss.util.propertyeditor.PropertyEditors.init()V
    at org.jboss.system.ServiceConfigurator.<clinit>(ServiceConfigurator.java:88)
    at org.jboss.system.ServiceController.preRegister(ServiceController.java:749)
    at org.jboss.mx.server.AbstractMBeanInvoker.invokePreRegister(AbstractMBeanInvoker.java:966)
    at org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBeanInvoker.java:489)
    at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:654)
    at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:697)
    at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1422)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1417)
    at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:295)
    at org.jboss.system.server.ServerImpl.createMBean(ServerImpl.java:543)
    at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:442)
    at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
    at org.jboss.Main.boot(Main.java:200)
    at org.jboss.Main$1.run(Main.java:508)
    at java.lang.Thread.run(Thread.java:619)
   10:12:47,498 INFO  [ServiceController] Registration of ServiceController failed
Failed to boot JBoss:
javax.management.NotCompliantMBeanException: Cannot register MBean:     jboss.system:service=ServiceController
    at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:314)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1422)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1417)
    at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:295)
    at org.jboss.system.server.ServerImpl.createMBean(ServerImpl.java:543)
    at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:442)
    at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
    at org.jboss.Main.boot(Main.java:200)
    at org.jboss.Main$1.run(Main.java:508)
    at java.lang.Thread.run(Thread.java:619)
Caused by: javax.management.RuntimeErrorException
    at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:725)
    at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211)
    ... 22 more
Caused by: java.lang.NoSuchMethodError:     org.jboss.util.propertyeditor.PropertyEditors.init()V
    at org.jboss.system.ServiceConfigurator.<clinit>(ServiceConfigurator.java:88)
    at org.jboss.system.ServiceController.preRegister(ServiceController.java:749)
    at org.jboss.mx.server.AbstractMBeanInvoker.invokePreRegister(AbstractMBeanInvoker.java:966)
    at org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBeanInvoker.java:489)
    at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:654)
    at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:697)
    ... 23 more
Press any key to continue . . .

我在使用新的JBoss时遇到了同样的错误。我正在使用Eclipse IDE 3.4

会感激一些帮助!!! 谢谢 -AJ

1 个答案:

答案 0 :(得分:0)

听起来你的班级路径发生了变化。你不小心删了一个罐子吗?我会回到jboss网站并获得jboss的新副本。