When configuring JBOSS5 with Eclipse Luna, the configuration is successful but cannot be started on the Eclipse console.
Log: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]
Workaround:
1) Open the Server\default\conf\bootstrap\profile.xml file in the JBOSS5 installation directory
2)
Change from:
<bean name= "Attachmentstore" class= "Org.jboss.system.server.profileservice.repository.AbstractAttachmentStore ">
<constructor><parameter><inject bean= "bootstrapprofilefactory" property= " Attachmentstoreroot "/></parameter></constructor>
<property name= "Maindeployer" ><inject bean= "Maindeployer"/></property>
<property name= "Serializer" ><inject bean= "Attachmentsserializer"/></property>
<property name= "persistencefactory" ><inject bean= "Persistencefactory"/></property>
</bean>
To:
<bean name= "Attachmentstore" class= "Org.jboss.system.server.profileservice.repository.AbstractAttachmentStore ">
<constructor><parameter class= "Java.io.File" ><inject bean= "Bootstrapprofilefactory" Property= "Attachmentstoreroot"/></parameter></constructor>
<property name= "Maindeployer" ><inject bean= "Maindeployer"/></property>
<property name= "Serializer" ><inject bean= "Attachmentsserializer"/></property>
<property name= "persistencefactory" ><inject bean= "Persistencefactory"/></property>
</bean>
ECLIPSE+JBOSS5 cannot start