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

本文介绍了解决JBoss在安装AttachmentStore过程中出现错误的具体步骤。通过修改server/default/conf/bootstrap/profile.xml文件中的AttachmentStore配置,成功解决了由构造函数参数类型不匹配导致的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  1. 10:18:01,906 ERROR [AbstractKernelController] Error installing to Instantiated: name=AttachmentStore state=Described  
  2. java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[java.net.URI] actual=[java.io.File]  
  3.     at org.jboss.reflect.plugins.introspection.ReflectionUtils.handleErrors(ReflectionUtils.java:395)  
  4.     at org.jboss.reflect.plugins.introspection.ReflectionUtils.newInstance(ReflectionUtils.java:153)  
  5.     at org.jboss.reflect.plugins.introspection.ReflectConstructorInfoImpl.newInstance(ReflectConstructorInfoImpl.java:106)  

网上资源:

JBoss 论坛:Problem installing 5.1GA on solaris SPARC

JBoss bug:JBAS-6981

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

  1. 确定正在使用的要发布的服务器(server 目录下使用到的服务目录,如 all, default, minial, ...,这里我使用的是 default)。
  2. 进到类似目录 server/default/conf/bootstrap,打开文件 profile.xml
  3. 找到:
    Xml代码 
    1. <bean name="AttachmentStore" class="org.jboss.system.server.profileservice.repository.AbstractAttachmentStore">  
    2.  <constructor><parameter><inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /></parameter></constructor>  
     
  4. 修改为:
    Xml代码 
    1. <bean name="AttachmentStore" class="org.jboss.system.server.profileservice.repository.AbstractAttachmentStore">  
    2.  <constructor><parameter class="java.io.File"><inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /></parameter></constructor>  
     
  5. 重启 JBoss,问题解决
转自http://mycream.iteye.com/blog/632166 谢谢这位高手!

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值