- 10:18:01,906 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]
- at org.jboss.reflect.plugins.introspection.ReflectionUtils.handleErrors(ReflectionUtils.java:395)
- at org.jboss.reflect.plugins.introspection.ReflectionUtils.newInstance(ReflectionUtils.java:153)
- at org.jboss.reflect.plugins.introspection.ReflectConstructorInfoImpl.newInstance(ReflectConstructorInfoImpl.java:106)
网上资源: java
JBoss 论坛:Problem installing 5.1GA on solaris SPARC bootstrap
JBoss bug:JBAS-6981 服务器
在 JBoss 的官方论坛上找到一篇解决方案,具体是: spa
- 肯定正在使用的要发布的服务器(server 目录下使用到的服务目录,如 all, default, minial, ...,这里我使用的是 default)。
- 进到相似目录 server/default/conf/bootstrap,打开文件 profile.xml
- 找到:
- <bean name="AttachmentStore" class="org.jboss.system.server.profileservice.repository.AbstractAttachmentStore">
- <constructor><parameter><inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /></parameter></constructor>
- 修改成:
- <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,问题解决
转自http://mycream.iteye.com/blog/632166 谢谢这位高手!