jboss 5.1 启动问题解决

时间:2014-10-16 22:22:24   收藏:0   阅读:339

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

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>

然后重启

原文:http://www.cnblogs.com/dashu0211/p/4029682.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!