首页 > 其他 > 详细

jboss 5.1 启动问题解决

时间:2014-10-16 22:22:24      阅读:339      评论:0      收藏:0      [点我收藏+]

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

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 启动问题解决

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!