异常:java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor

来源:互联网 发布:js history pushstate 编辑:程序博客网 时间:2024/06/06 12:35

大哭异常:

java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[java.net.URI] actual

 

解决办法:

 

原因是AttachmentStore初始化错误。
打开jboss-5.1.0.GA/server/default/conf/bootstrap下的profile.xml文件。

关于AttachmentStore的配置
<!-- The attachment store -->
<bean name="AttachmentStore" class="org.jboss.system.server.profileservice.repository.AbstractAttachmentStore">
<constructor><parameter><inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /></parameter></constructor>

改成
<!-- The attachment store -->
<bean name="AttachmentStore" class="org.jboss.system.server.profileservice.repository.AbstractAttachmentStore">
<constructor>
<parameter class="java.io.File"> <inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /></parameter></constructor>

 

原创粉丝点击