Je viens de terminer la réinstallation de mon système d'exploitation, et comme toujours installer et tester les outils standard que j'utilise, je reçois maintenant cette erreur comme jamais auparavant lorsque j'ai essayé de démarrer Jboss 5 à partir d'Eclipse, ce qui est une assez grosse exception:
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
Est-ce que quelqu'un a déjà eu le même problème auparavant? Je ne l'ai jamais rencontré jusqu'à présent
Ressemble à un bogue qui survient avec certaines combinaisons spécifiques de versions de JRE et de système d'exploitation (voir https://jira.jboss.org/jira/browse/JBAS-6981 ). Fondamentalement, la configuration de JBoss s’appuie sur la réflexion pour renvoyer les constructeurs dans un certain ordre, et dans certains cas, cet ordre est différent, ce qui provoque une exception. Avez-vous changé votre version de JRE lors de la réinstallation, par exemple de 1.6.0_17 à _18?
Quoi qu'il en soit, la solution de contournement est décrite dans le numéro JIRA et également ici . Vous devez changer le contenu de conf/bootstrap/profile.xml
. Recherchez la définition de AttachmentStore
et modifiez la ligne du constructeur pour qu'elle commence ainsi (ajoutez l’attribut XML class
XML à la balise parameter
):
<constructor><parameter class="Java.io.File"><inject …
La version originale n'a pas le class="Java.io.File"
attribut.
Joli bâton des gens de JBoss, mais voilà.
jboss-5.0.0.GA-JDK6/serveur/default/conf/bootstrap $ diff bindings.xml.old bindings.xml
Dans ce fichier, vous devez changer deux choses. Une:
Vieux
<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">
Deuxièmement: Et ensuite votre numéro de port http dans la définition du bean ci-dessous
<bean class="org.jboss.services.binding.ServiceBindingMetadata">
<property name="serviceName">jboss.web:service=WebServer</property>
<property name="port">7070</property>