今天在Eclipse中启动JBoss 5.1时遇到这样的一个错误:
……
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 设置就可以了。在该文件中,你可以找到:
<bean name="AttachmentStore" class="org.jboss.system.server.profileservice.repository.AbstractAttachmentStore">
<constructor>
<parameter>
<inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" />
</parameter>
</constructor>
<property name="mainDeployer"><inject bean="MainDeployer" /></property>
<property name="serializer"><inject bean="AttachmentsSerializer" /></property>
<property name="persistenceFactory"><inject bean="PersistenceFactory" /></property>
</bean>
只需将它改为:
<bean name="AttachmentStore" class="org.jboss.system.server.profileservice.repository.AbstractAttachmentStore">
<constructor>
<!-- 修改这里 -->
<parameter class="java.io.File">
<inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" />
</parameter>
</constructor>
<property name="mainDeployer"><inject bean="MainDeployer" /></property>
<property name="serializer"><inject bean="AttachmentsSerializer" /></property>
<property name="persistenceFactory"><inject bean="PersistenceFactory" /></property>
</bean>
相关推荐
ejb课程测试代码,eclipse+jboss5.1 ant编译等代码 三个测试项目请下载
本资源描述了如何在jboss5.1环境中配置集群操作,并附有一个简单的例子,方便大家对集群操作有个初步的了解。
Jboss5.1 下将多个application配置成windows 服务,我耗时2天,总结出来的绝对可行的方法,无需安装第3方软件,如javaservice/wrapper.
整理一下jboss drool5.1中文使用说明,doc格式
JBOSS5.1安装配置说明,说明Windows下JBoss的配置方法
除了加入jboss-web.xml,删除xerces-2.6.2.jar和xml-apis.jar之外, <!... <jboss-web> <!-- For load class ...原因是旧版本的slf4j-api不包含以上方法,附件解压后覆盖jboss5.1GA/common/lib下的同名文件即可
在Eclipse for Java EE中配置JBoss服务器,简单。。
在eclipse中配置 jboss 图解
Eclipse+jboss的配置Eclipse+jboss的配置Eclipse+jboss的配置Eclipse+jboss的配置Eclipse+jboss的配置Eclipse+jboss的配置
在Eclipse中使用JBoss数据库连接池技术 配置:JBoss 5.0 Eclipse Platform3.4 MySQL4.0 在Eclipse中使用JDBC桥来连接数据库大家应该都很熟悉,今天我要说的是如何在Eclipse中使用数据库连接池技术
JBoss启动JBoss启动JBoss启动JBoss启动JBoss启动JBoss启动JBoss启动JBoss启动 JBoss启动
Eclipse3.7 集成 jbossTools 3.3+Drools 6.0 自己亲自安装集成
eclipse 远程调试jboss as7配置过程, 图文并茂
jboss seam 架设Eclipse 中常见的错误解决.doc
手把手系列-Eclipse+JBossIDE+JBoss开发环境配置
Jboss Tools for Eclipse4.5.2...d eclipse mars 版本
Jboss启动报Failed to parse WEB-INFweb.xml; - nested throwable错误
Eclipse下Jboss_ESB开发环境搭建
eclipse 、jboss的下载、安装和配置,使用Eclipse开发Web应用的举例说明。图文并茂绝对值得一看,java高级开发者必看
配置Eclipse进行JBOSS远程调试