启动jboss服务器时出错 [英] Error starting jboss server

查看:112
本文介绍了启动jboss服务器时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚完成重新安装我的操作系统,一如既往地安装和测试我使用的标准工具,现在我从未像以前那样尝试从Eclipse中启动Jboss 5,这个错误很大:

  3:53:10,693错误[AbstractKernelController]安装到实例化时出错:name = AttachmentStore state =描述
java。 lang.IllegalArgumentException:参数错误。 new for target java.lang.reflect.Constructor expected = [java.net.URI] actual = [java.io.File]
在org.jboss.reflect.plugins.introspection.ReflectionUtils.handleErrors(ReflectionUtils.java :395)
在org.jboss.reflect.plugins.introspection.ReflectionUtils.newInstance(ReflectionUtils.java:153)
在org.jboss.reflect.plugins.introspection.ReflectConstructorInfoImpl.newInstance(ReflectConstructorInfoImpl.java :106)
在org.jboss.joinpoint.plugins.BasicConstructorJoinPoint.dispatch(BasicConstructorJoinPoint.java:80)
在org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.createTarget(AOPConstructorJoinpoint.java:282 )
在org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.dispatch(AOPConstructorJoinpoint.java:103)
在org.jboss.kernel.plugins.dependency.KernelControllerContextAction $ JoinpointDispatchWrapper.execute(KernelControllerContextAction.java :241)
在org.jboss.kernel.plugins.dependency.ExecutionWrappe r.execute(ExecutionWrapper.java:47)
在org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
在org.jboss.kernel.plugins.dependency。 KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
在org.jboss.kernel.plugins.dependency.InstantiateAction.installActionInternal(InstantiateAction.java:66)
在org.jboss.kernel.plugins.dependency。在org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)中安装$■
$ org.bata.Applications.action。 SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
在org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
在org.jboss.dependency.plugins.AbstractControllerContextActions。安装(摘要actControllerContextActions.java:51)
在org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
在org.jboss.dependency.plugins.AbstractController.install(AbstractController.java: 1631)
在org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
在org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
在org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
在org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
在org .jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
在org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:319)
在org.jboss .kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:297)
at或g.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)
在org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicKernelDeployer.java:76)
在org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:91)
在org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:161)
在org.jboss。 bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:138)
在org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
在org.jboss.Main.boot(Main。 java:221)
在org.jboss.Main $ 1.run(Main.java:556)
在java.lang.Thread.run(Thread.java:619)
无法启动JBoss:
java.lang.IllegalStateException:未完全部署:

DEPLOYMENTS IN ERROR:
部署AttachmentStore因为以下错误:java.lang.IllegalArgumentException:错误的参数。 new for target java.lang.reflect.Constructor expected = [java.net.URI] actual = [java.io.File]

部署缺失依赖关系:
部署ProfileServiceBootstrap缺少以下依赖关系:
依赖关系ProfileService(应处于状态已安装,但实际上处于实例化状态)
依赖关系jboss.kernel:service = Kernel(应处于状态安装,但实际上处于状态** ERROR **)
部署ProfileServiceDeployer缺少以下依赖关系:
依赖关系AttachmentStore(应处于已安装状态,但实际上状态** ERROR **)
部署ProfileService缺少以下依赖关系:
依赖关系ProfileServiceDeployer(应处于已安装状态,但实际上处于已实例化状态)
依赖关系jboss.kernel:service = KernelController(应该处于已安装状态,但实际上处于** ERROR **状态)
部署ProfileServiceP ersistenceDeployer缺少以下依赖关系:
依赖关系AttachmentStore(应处于已安装状态,但实际上处于** ERROR **状态)

在org.jboss .kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:278)
在org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174)
在org.jboss .bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:142)
在org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
在org.jboss.Main.boot(Main .java:221)
在org.jboss.Main $ 1.run(Main.java:556)
在java.lang.Thread.run(Thread.java:619)
23: 53:11,600 INFO [ServerImpl]调用运行时关机钩子,forceHalt:true
23:53:11,615 INFO [ServerImpl]关闭完成

以前有人有类似的问题吗?迄今为止我从未遇到过

解决方案

看起来像JRE和OS版本的某些特定组合发生的错误(参见 https://jira.jboss.org/jira/browse/JBAS-6981 )。基本上,JBoss配置依赖于反射以一定的顺序返回构造函数,在某些情况下,这个顺序是不同的,导致异常。当您重新安装时,您是否更改了JRE版本,从1.6.0_17到_18?



无论如何,解决方法在JIRA问题中也有描述,还有 here 。您需要更改 conf / bootstrap / profile.xml 的内容。查找 AttachmentStore 的定义,并更改构造函数行,使其像这样开始(即添加 参数标签的XML属性):

 < constructor>< ;参数class =java.io.File>< inject ... 

原始版本没有'code> class =java.io.File属性。



JBoss的人很漂亮,但是你走了。


I've just finished re-installing my OS, and as always install and test standard tools which I use, and now I get this error like never before when I tried to start Jboss 5 from eclipse, its quite big exeption :

3:53:10,693 ERROR [AbstractKernelController] Error installing to Instantiated: name=AttachmentStore state=Described
java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[java.net.URI] actual=[java.io.File]
    at org.jboss.reflect.plugins.introspection.ReflectionUtils.handleErrors(ReflectionUtils.java:395)
    at org.jboss.reflect.plugins.introspection.ReflectionUtils.newInstance(ReflectionUtils.java:153)
    at org.jboss.reflect.plugins.introspection.ReflectConstructorInfoImpl.newInstance(ReflectConstructorInfoImpl.java:106)
    at org.jboss.joinpoint.plugins.BasicConstructorJoinPoint.dispatch(BasicConstructorJoinPoint.java:80)
    at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.createTarget(AOPConstructorJoinpoint.java:282)
    at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.dispatch(AOPConstructorJoinpoint.java:103)
    at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
    at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
    at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
    at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
    at org.jboss.kernel.plugins.dependency.InstantiateAction.installActionInternal(InstantiateAction.java:66)
    at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
    at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
    at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:319)
    at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:297)
    at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)
    at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicKernelDeployer.java:76)
    at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:91)
    at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:161)
    at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:138)
    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
    at org.jboss.Main.boot(Main.java:221)
    at org.jboss.Main$1.run(Main.java:556)
    at java.lang.Thread.run(Thread.java:619)
Failed to boot JBoss:
java.lang.IllegalStateException: Incompletely deployed:

DEPLOYMENTS IN ERROR:
  Deployment "AttachmentStore" is in error due to: java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[java.net.URI] actual=[java.io.File]

DEPLOYMENTS MISSING DEPENDENCIES:
  Deployment "ProfileServiceBootstrap" is missing the following dependencies:
    Dependency "ProfileService" (should be in state "Installed", but is actually in state "Instantiated")
    Dependency "jboss.kernel:service=Kernel" (should be in state "Installed", but is actually in state "**ERROR**")
  Deployment "ProfileServiceDeployer" is missing the following dependencies:
    Dependency "AttachmentStore" (should be in state "Installed", but is actually in state "**ERROR**")
  Deployment "ProfileService" is missing the following dependencies:
    Dependency "ProfileServiceDeployer" (should be in state "Installed", but is actually in state "Instantiated")
    Dependency "jboss.kernel:service=KernelController" (should be in state "Installed", but is actually in state "**ERROR**")
  Deployment "ProfileServicePersistenceDeployer" is missing the following dependencies:
    Dependency "AttachmentStore" (should be in state "Installed", but is actually in state "**ERROR**")

    at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:278)
    at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174)
    at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:142)
    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
    at org.jboss.Main.boot(Main.java:221)
    at org.jboss.Main$1.run(Main.java:556)
    at java.lang.Thread.run(Thread.java:619)
23:53:11,600 INFO  [ServerImpl] Runtime shutdown hook called, forceHalt: true
23:53:11,615 INFO  [ServerImpl] Shutdown complete 

Did anyone had the similar problem before?I've never encountered it so far

解决方案

Looks like a bug that occurs with certain specific combinations of JRE and OS versions (see https://jira.jboss.org/jira/browse/JBAS-6981). Basically, the JBoss config is relying on reflection to return constructors in a certain order, and in some cases this order is different, causing the exception. Did you change your JRE version when you reinstalled, say from 1.6.0_17 to _18?

Anyway, the workaround is described in the JIRA issue, and also here. You need to change the content of conf/bootstrap/profile.xml. Look for the definition of the AttachmentStore, and change the constructor line so that it starts like this (i.e. add the class XML attribute to the parameter tag):

<constructor><parameter class="java.io.File"><inject …

The original version doesn't have the class="java.io.File" attribute.

Pretty sloppy of the JBoss folks, but there you go.

这篇关于启动jboss服务器时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆