欢迎访问 生活随笔!

生活随笔

当前位置: 首页 >

JBoss5 启动报错java.lang.IllegalArgumentException: ...

发布时间:2023/12/15 47 豆豆
生活随笔 收集整理的这篇文章主要介绍了 JBoss5 启动报错java.lang.IllegalArgumentException: ... 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

2019独角兽企业重金招聘Python工程师标准>>>

  • 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)  
  • 网上资源:

    JBoss 论坛:Problem installing 5.1GA on solaris SPARC

    JBoss bug:JBAS-6981

    在 JBoss 的官方论坛上找到一篇解决方案,具体是:

  • 确定正在使用的要发布的服务器(server 目录下使用到的服务目录,如 all, default, minial, ...,这里我使用的是 default)。
  • 进到类似目录 server/default/conf/bootstrap,打开文件 profile.xml
  • 找到: Xml代码 
  • <bean name="AttachmentStore" class="org.jboss.system.server.profileservice.repository.AbstractAttachmentStore">  
  •  <constructor><parameter><inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /></parameter></constructor>  
  •  
  • 修改为: Xml代码 
  • <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 谢谢这位高手!

    转载于:https://my.oschina.net/u/562564/blog/128955

    总结

    以上是生活随笔为你收集整理的JBoss5 启动报错java.lang.IllegalArgumentException: ...的全部内容,希望文章能够帮你解决所遇到的问题。

    如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。