私はOSの再インストールを終えたばかりで、いつも使用している標準ツールをインストールしてテストしますが、今では、非常に大きな例外であるEclipseからJboss 5を起動しようとしたときにこのエラーが発生します:
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
以前に誰かが同様の問題を抱えていましたか?
JREとOSバージョンの特定の特定の組み合わせで発生するバグのように見えます( https://jira.jboss.org/jira/browse/JBAS-6981 を参照)。基本的に、JBoss構成はリフレクションに依存して特定の順序でコンストラクターを返すため、場合によってはこの順序が異なり、例外が発生します。 1.6.0_17から_18などに再インストールしたときにJREバージョンを変更しましたか?
とにかく、回避策はJIRAの問題と here で説明されています。 conf/bootstrap/profile.xml
の内容を変更する必要があります。 AttachmentStore
の定義を探し、コンストラクタ行を次のように変更します(つまり、class
XML属性をparameter
タグに追加します)。
<constructor><parameter class="Java.io.File"><inject …
元のバージョンにはclass="Java.io.File"
属性がありません。
JBossの人はかなりずさんですが、そこに行きます。
jboss-5.0.0.GA-JDK6/server/default/conf/bootstrap $ diff bindings.xml.old bindings.xml
このファイルでは、2つのことを変更する必要があります。 1:
古い
<bean name="StandardBindings" class="Java.util.HashSet"
< elementClass="org.jboss.services.binding.ServiceBindingMetadata">
<constructor>
<parameter>
<set>
—New
<bean name="StandardBindings" class="Java.util.HashSet">
<constructor>
<parameter class="Java.util.Collection">
<set elementClass="org.jboss.services.binding.ServiceBindingMetadata">
2番目:そして、以下のBean定義のhttpポート番号
<bean class="org.jboss.services.binding.ServiceBindingMetadata">
<property name="serviceName">jboss.web:service=WebServer</property>
<property name="port">7070</property>