ERROR AbstractKernelController Error installing to Instantiated:... Wrong arguments. new for target java.lang.reflect.Constructor expected=java.net.URI actual=java.io.File

De Wikillano

Al arrancar jboss 5.1.0 GA nos encontramos con el error:

ERROR AbstractKernelController Error installing to Instantiated:... Wrong arguments. new for target java.lang.reflect.Constructor expected=java.net.URI actual=java.io.File

Para solucionar el problema debemos modificar el fichero profile.xml dentro de /JBOSS_HOME/server/<all,default..etc> la siguiente parte:

<bean name="AttachmentStore" class="org.jboss.system.server.profileservice.repository.AbstractAttachmentStore">
<constructor><parameter><inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /></parameter></constructor> 

por esto:

<bean name="AttachmentStore" class="org.jboss.system.server.profileservice.repository.AbstractAttachmentStore">
<constructor><parameter class="java.io.File"><inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /></parameter></constructor>
Herramientas personales