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>

  • 相关阅读:
    [CF1365D] Solve The Maze
    [CF478C] Table Decorations
    [CF466D] Increase Sequence
    [CF449D] Jzzhu and Numbers
    [CF507E] Breaking Good
    [CF337D] Book of Evil
    [CF1253E] Antenna Coverage
    VMware 在 Win10 下开机后死机的解决方案
    [CF1009F] Dominant Indices
    [CF1037E] Trips
  • 原文地址:https://www.cnblogs.com/welv/p/5023567.html
Copyright © 2011-2022 走看看