首页 > 代码库 > jboss 5.1 启动问题解决

jboss 5.1 启动问题解决

在安装好后启动时可能遇到这样的情况:

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]
……
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]

 

只要修改一下 profile.xml(JBOSS_HOME\server\default\conf\bootstrap\profile.xml) 中的 AttachmentStore 设置就可以了。

 

修改:

<bean name="AttachmentStore" class="org.jboss.system.server.profileservice.repository.AbstractAttachmentStore">

  <constructor>

    <!-- 修改这里 -->

     <parameter class="java.io.File">

    <inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" />

     </parameter>

  </constructor>

然后重启

jboss 5.1 启动问题解决