在安装好后启动时可能遇到这样的情况:

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]

只要修改一下 profile.xml(JBOSS_HOME\server\default\conf\bootstrap\profile.xml) 中的 AttachmentStore 设置就可以了。

修改:

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

<constructor>

<!-- 修改这里 -->

<parameter class="java.io.File">

<inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" />

</parameter>

</constructor>

然后重启

最新文章

  1. 11——在operator=中处理自我赋值
  2. #ifdef __cplusplus extern &quot;C&quot;
  3. CentOS6.5 ssh远程连接缓慢解决方法
  4. 在sql-server上建立mysql链接库
  5. POJ 3278Catch That Cow
  6. BZOJ2151: 种树
  7. POJ2524+并查集
  8. java中的浮点计算
  9. 数据库分库分表(sharding)系列(二) 全局主键生成策略
  10. hdu 1546 Idiomatic Phrases Game
  11. boost uuid 学习笔记
  12. 浅解ARC中的 __bridge、__bridge_retained和__bridge_transfer
  13. IPSEC VPN配置实例
  14. Pythonh中的zip()与*zip()函数详解
  15. Asp.Net Web API(二)
  16. CentOS 7 搭建基于携程Apollo(阿波罗)配置中心单机模式
  17. Linux环境下Swap配置方法
  18. BZOJ_1828_[Usaco2010 Mar]balloc 农场分配_线段树
  19. java对象在内存中的结构
  20. k8s之external-etcd集群管理

热门文章

  1. Java8 新特性之默认接口方法
  2. Java 常用对象-Date类和Calender类
  3. 笔试题目练习-python
  4. JSP中scope属性 scope属性决定了JavaBean对象存在的范围
  5. Jaccard similarity(杰卡德相似度)和Abundance correlation(丰度相关性)
  6. 20170727xlVBA根据总名单和模板生成多页名单
  7. ubuntu svn二进制文件
  8. SqlDataReader的用法
  9. MVC ——设置启动 URL
  10. SVN 创建分支