zoukankan      html  css  js  c++  java
  • Eclipse+jboss5 无法启动

    在使用Eclipse luna 配置Jboss5 时,配置成功,但无法在eclipse 控制台上启动。

    log: 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]

    解决方法:

     1)打开jboss5 安装目录下的serverdefaultconfootstrapprofile.xml文件

     2)

      change from:

    <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>

      to:

    <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>

  • 相关阅读:
    团队博客18
    团队博客17
    团队博客16
    团队博客15
    团队博客14
    团队博客13
    团队博客12
    课堂作业08--MVC框架的具体应用
    课堂作业07--MVC框架
    课堂作业06--23中设计模式
  • 原文地址:https://www.cnblogs.com/welv/p/5023567.html
Copyright © 2011-2022 走看看