Deployment “AttachmentStore“ is in error due to: java.lang.IllegalArgumentException: Wrong arguments

导读:本篇文章讲解 Deployment “AttachmentStore“ is in error due to: java.lang.IllegalArgumentException: Wrong arguments,希望对大家有帮助,欢迎收藏,转发!站点地址:www.bmabk.com

Jboss5.1GA在linux环境下启动报错:

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]

DEPLOYMENTS MISSING DEPENDENCIES:
  Deployment "ProfileService" is missing the following dependencies:
    Dependency "ProfileServiceDeployer" (should be in state "Installed", but is actually in state "Instantiated")
    Dependency "jboss.kernel:service=KernelController" (should be in state "Installed", but is actually in state "**ERROR**")
  Deployment "ProfileServiceBootstrap" is missing the following dependencies:
    Dependency "ProfileService" (should be in state "Installed", but is actually in state "Instantiated")
    Dependency "jboss.kernel:service=Kernel" (should be in state "Installed", but is actually in state "**ERROR**")
  Deployment "ProfileServiceDeployer" is missing the following dependencies:
    Dependency "AttachmentStore" (should be in state "Installed", but is actually in state "**ERROR**")
  Deployment "ProfileServicePersistenceDeployer" is missing the following dependencies:
    Dependency "AttachmentStore" (should be in state "Installed", but is actually in state "**ERROR**")

	at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:278)
	at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174)
	at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:142)
	at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
	at org.jboss.Main.boot(Main.java:221)
	at org.jboss.Main$1.run(Main.java:556)
	at java.lang.Thread.run(Thread.java:745)

解决方法:

        修改配置文件$JBOSS_HOME/server/<serverName>/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>

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

文章由极客之音整理,本文链接:https://www.bmabk.com/index.php/post/62131.html

(0)
小半的头像小半

相关推荐

极客之音——专业性很强的中文编程技术网站,欢迎收藏到浏览器,订阅我们!