今天在Eclipse中启动jboss-5.1.0.GA时遇到这样的一个错误:
……
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]
        从错误信息中,就知道是 AttachmentStore 的一个参数错误。
        解决方法倒很简单,只要修改一下 profile.xml(JBOSS_HOME/server/default/conf/bootstrap/profile.xml) 中的 AttachmentStore 设置就可以了。在该文件中,你可以找到:

 1: <bean name="AttachmentStore"
class="org.jboss.system.server.profileservice.repository.AbstractAttachmentStore"> 

 2: <constructor>
 3: <parameter>
 4: <inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /> 

 5: </parameter>
 6: </constructor>
 7: <property name="mainDeployer"><inject bean="MainDeployer" /></property>
 8: <property name="serializer"><inject bean="AttachmentsSerializer" /></property>
 9: <property name="persistenceFactory"><inject bean="PersistenceFactory" /></property>
 10: </bean>

只需将它改为:

 1: <bean name="AttachmentStore"class="org.jboss.system.server.profileservice.repository.AbstractAttachmentStore"> 

 2: <constructor>
 3: <!-- 修改这里 -->
 4: <parameter class="java.io.File">
 5: <inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" />
 6: </parameter>
 7: </constructor>
 8: <property name="mainDeployer"><inject bean="MainDeployer" /></property> 

 9: <property name="serializer"><inject bean="AttachmentsSerializer" /></property>
 10: <property name="persistenceFactory"><inject bean="PersistenceFactory" /></property>
 11: </bean>

Error installing to Instantiated: name=AttachmentStore state=Described相关推荐

  1. 运行JBoss 5.1.0 GA时出现Error installing to Instantiated:name=AttachmentStore state=Described错误的解决办法...

    第一次开JBoss服务器:有些时候会遇到这种情况:把以下的文字替换即可 进到类似目录 server/default/conf/bootstrap,打开文件 profile.xml找到: Xml代码 & ...

  2. Error:org.gradle.api.internal.changedetection.state.FileCollectionSnapshotImpl cannot be cast to org

    androidStudio上R提示:Can't resolve symbol 'R' ,并出现如下错误: Error:org.gradle.api.internal.changedetection.s ...

  3. [INS-08109] Unexpected error occurred while validating inputs at state 'getOCMDetails'.

    在ORACLE11G R2 安装ORACLE时出现以下错误: [INS-08109] Unexpected error occurred while validating inputs at stat ...

  4. cocoapods 安装失败 ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension.

    cocoapods 安装失败 完整报错 尝试安装 我的问题 使用 Alamofire 需要基于 CocoaPods,但是在尝试安装 CocoaPods 的过程中遇到了很多问题,捣鼓了很久都失败了,最后 ...

  5. 使用cocoapods install友盟时报错Error installing UMengAnalytics

    报错: [!] /usr/bin/unzip /Users/soindy/Documents/SmartThermo/ios/SmartThermo/Pods/UMengAnalytics/file. ...

  6. error in ./node_modules/@lit/reactive-element/decorators/state.jsModule parse failed: Unexpected

    最近开发一个老项目,发现之前好好的项目现在运行起来报错了 ,各种切换npm 源和 node版本都不行,百度和谷歌都没找到相关信息,报错如下, error  in ./node_modules/@lit ...

  7. react-native pod install: [!] Error installing boost-for-react-native

    - 具体错误: [!] Error installing boost-for-react-native [!] Failed to download 'boost-for-react-native': ...

  8. [!] Error installing PromiseKit

    [!] Error installing PromiseKit pod install 的时候,PromiseKit这个框架更新报错 [!] Error installing PromiseKit [ ...

  9. Vysor Error installing Apak:pakg:/data/local/tem/apk1508661961221

    Vysor ,对于Vysor的介绍,这里就不多说了,可以自行百度一下.今天讲一下自己在用这个过程中出现的错误.由于深入学习android内核,我将原来的真机的系统搞奔溃了,于是用线刷技术,将原来的MI ...

  10. Android Studio上Session 'app': Error Installing APK错误解决方案

    我在使用Android Studio的时候,使用自己魅族(M5 Note)做真机测试,运行不成功,提示下面图片中的错误(Session 'app':Error Installing APK). 再经过 ...

最新文章

  1. WIN7 X64 Setup Oracle Developer Suite 10g
  2. 邮件附件在线预览——HTML Filter
  3. CodeForces - 126B Password(KMP中next数组)
  4. 分布式数据库基础:分布式事务相关概念介绍
  5. java如何限制输入值_[限制input输入类型]常用限制input方法
  6. php遍历子分类的函数,emlog程序获取主分类下的所有子分类ID函数
  7. 2017.3.16 聪聪可可 思考记录(非常不容易)
  8. Palo Alto Networks下一代安全平台五大创新功能:云安全为重中之重
  9. Google 推荐和鼓励的 13 条代码审查标准,建议收藏!
  10. 计算机快速换界面,老板来了?这些好用的Windows快捷键让你一秒切换操作界面!-页面设置快捷键...
  11. 职业经验分享之我是如何转行成为数据分析师的
  12. 为了让智能手机厂商早日推出 5G 手机,高通真是操碎了心
  13. Android攻城狮ScrollView
  14. PC端、手机端在线预览文档组件react-file-viewer与npm构建内存溢出
  15. python中级水平_Python 中级知识点
  16. 关于多重背包理解的一点思考和拨乱反正
  17. 相对论通俗演义(1-10) 第九章
  18. 差点被一个柿子砸中 -_-
  19. selenium3.141 +IE浏览器环境搭建(含驱动下载链接)
  20. IE/Firefox每次刷新时自动检查网页更新,无需手动清空缓存的设置方法

热门文章

  1. 永不消逝的电波-wirteup
  2. 外贸术语 交货条件(zt)
  3. 揭开智慧校园的神秘面纱
  4. python写cdr插件_CDR插件: YG辅助增强插件 完美支持Win3264位 CorelDRAW X4-2018 免费下载附详细图文教程...
  5. 桌面总是弹出计算机内存不足,电脑老是提醒内存不足怎么办
  6. 数据库第三次实验报告
  7. springboot后端接受图片到本地
  8. 【软件架构文档之SOC篇】
  9. Web前端业界氛围极好的群——鬼懿IT
  10. 某程序员:这辈子再也不想为谁拼刀刀了!