2011-04-08 130 views
0

我想在linux機器(centos)上安裝Jboss。我只是複製jboss文件夾。並運行run.sh文件。但它不會啓動並顯示錯誤說沒有安裝Jboss

Could not create deployment: file:/opt/apps/jboss-4.2.3.GA/server/default/conf/jboss-service.xml 
     org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.UndeclaredThrowableException) 
     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:57) 
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
     at java.lang.reflect.Method.invoke(Method.java:616) 
     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:57) 
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
     at java.lang.reflect.Method.invoke(Method.java:616) 
     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:636) 
    Caused by: java.lang.reflect.UndeclaredThrowableException 
     at org.jboss.system.ServiceCreator.install(ServiceCreator.java:236) 
     at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:451) 
     at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171) 
     ... 36 more 
    Caused by: java.lang.IllegalAccessError: tried to access method org.jboss.security.auth.login.XMLLoginConfigImpl.<init>()V from class org.jboss.security.auth.login.XMLLoginConfig 
     at org.jboss.security.auth.login.XMLLoginConfig.<init>(XMLLoginConfig.java:47) 
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) 
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 
     at java.lang.reflect.Constructor.newInstance(Constructor.java:532) 
     at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1233) 
     at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286) 
     at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344) 
     at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157) 
     ... 38 more 
    Failed to boot JBoss: 
    org.jboss.deployment.DeploymentException: - nested throwable:  (java.lang.reflect.UndeclaredThrowableException) 
     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:57) 
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
     at java.lang.reflect.Method.invoke(Method.java:616) 
     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:57) 
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
     at java.lang.reflect.Method.invoke(Method.java:616) 
     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:636) 
    Caused by: java.lang.reflect.UndeclaredThrowableException 
     at org.jboss.system.ServiceCreator.install(ServiceCreator.java:236) 
     at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:451) 
     at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171) 
     ... 36 more 
    Caused by: java.lang.IllegalAccessError: tried to access method org.jboss.security.auth.login.XMLLoginConfigImpl.<init>()V from class org.jboss.security.auth.login.XMLLoginConfig 
     at org.jboss.security.auth.login.XMLLoginConfig.<init>(XMLLoginConfig.java:47) 
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) 
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 
     at java.lang.reflect.Constructor.newInstance(Constructor.java:532) 
     at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1233) 
     at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286) 
     at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344) 
     at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157) 

什麼可能是可能的錯誤。

+0

很難knoww該服務失敗了,還有沒有其他異常的路線? – 2011-04-08 08:01:10

+0

編輯了這個問題。完整的錯誤信息。 – coder 2011-04-08 09:21:02

回答

0

嗨 發現它終於自己。 在127.0.0.1的/ etc/hosts文件條目中不合適。

+0

相當肯定的問題無關,與主機文件(即問題可能是這樣的:https://community.jboss.org/wiki/ExceptionCreatingIdentity) 相反,問題可能罐子裝的內部服務器\的順序有關例如,默認\ lib。在我來說,我有這樣的問題,因爲picketbox-4.0.7.Final.jar正在jbosssx.jar之前加載,並且導致該確切異常。 jboss 4.2.3 – AlfaTeK 2013-10-23 06:21:16