worina8080 发表于 2013-1-31 00:44:11

Linux启动jboss出错

在linux下启动jboss发生如下错误14:36:59,609 ERROR Could not create deployment: file:/opt/jboss4.2.3/jboss-4.2.3.GA/server/default/conf/jboss-service.xmlorg.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.InvocationTargetException)      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)      at org.jboss.system.ServiceController.install(ServiceController.java:226)      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:592)      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)      at $Proxy4.install(Unknown Source)      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:251)      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)      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:592)      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.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)      at $Proxy5.deploy(Unknown Source)      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)      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:595)Caused by: java.lang.reflect.InvocationTargetException      at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1451)      at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1350)      at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:345)      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)      at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:451)      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)      ... 36 moreCaused by: javax.management.MBeanException      at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:180)      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)      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)      ... 41 moreCaused by: javax.management.MBeanRegistrationException: preRegister() failed:       at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:713)      at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211)      at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)      at java.lang.reflect.Method.invoke(Method.java:592)      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)      ... 51 moreCaused by: java.lang.RuntimeException: Exception creating identity: bogon: bogon      at org.jboss.remoting.ident.Identity.get(Identity.java:211)      at org.jboss.remoting.network.NetworkRegistry.preRegister(NetworkRegistry.java:268)      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)      ... 56 moreFailed to boot JBoss:org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.InvocationTargetException)      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)      at org.jboss.system.ServiceController.install(ServiceController.java:226)      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:592)      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)      at $Proxy4.install(Unknown Source)      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:251)      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)      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:592)      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.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)      at $Proxy5.deploy(Unknown Source)      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)      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:595)Caused by: java.lang.reflect.InvocationTargetException      at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1451)      at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1350)      at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:345)      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)      at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:451)      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)      ... 36 moreCaused by: javax.management.MBeanException      at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:180)      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)      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)      ... 41 moreCaused by: javax.management.MBeanRegistrationException: preRegister() failed:       at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:713)      at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211)      at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)      at java.lang.reflect.Method.invoke(Method.java:592)      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)      ... 51 moreCaused by: java.lang.RuntimeException: Exception creating identity: bogon: bogon      at org.jboss.remoting.ident.Identity.get(Identity.java:211)      at org.jboss.remoting.network.NetworkRegistry.preRegister(NetworkRegistry.java:268)      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)      ... 56 more

   解决办法etc/hosts文件中添加一行
ip 主机名。如192.168.109.111bogon
查询主机明命令:# hostname
页: [1]
查看完整版本: Linux启动jboss出错