JBAS014613: Operation ("add") failed啓動報錯

一個同事安裝jboss集羣,啓動不了,報錯,因爲是初次安裝,不可能存在應用war程序。經過排查,是因爲他們使用了我做的配置文件樣例。樣例中含有一個留言板測試程序的配配置。

[root@U2R10NWTBAPP01 bin]# sh domain.sh
=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /nwtb/jboss-eap-6.1

  JAVA: java

  JAVA_OPTS: -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true

=========================================================================

09:03:08,936 INFO  [org.jboss.modules] (main) JBoss Modules version 1.2.0.Final-redhat-1
09:03:09,184 INFO  [org.jboss.as.process.Host Controller.status] (main) JBAS012017: Starting process 'Host Controller'
[Host Controller] 09:03:10,031 INFO  [org.jboss.modules] (main) JBoss Modules version 1.2.0.Final-redhat-1
[Host Controller] 09:03:10,266 INFO  [org.jboss.msc] (main) JBoss MSC version 1.0.4.GA-redhat-1
[Host Controller] 09:03:10,377 INFO  [org.jboss.as] (MSC service thread 1-1) JBAS015899: JBoss EAP 6.1.0.GA (AS 7.2.0.Final-redhat-8) starting
[Host Controller] 09:03:11,177 INFO  [org.xnio] (MSC service thread 1-4) XNIO Version 3.0.7.GA-redhat-1
[Host Controller] 09:03:11,184 INFO  [org.xnio.nio] (MSC service thread 1-4) XNIO NIO Implementation Version 3.0.7.GA-redhat-1
[Host Controller] 09:03:11,207 INFO  [org.jboss.remoting] (MSC service thread 1-4) JBoss Remoting version 3.2.16.GA-redhat-1
[Host Controller] 09:03:11,203 INFO  [org.jboss.as] (Controller Boot Thread) JBAS010902: Creating http management service using network interface (management) port (9990) securePort (-1)
[Host Controller] 09:03:11,334 INFO  [org.jboss.as.remoting] (MSC service thread 1-3) JBAS017100: Listening on 2.188.146.170:9999
[Host Controller] 09:03:13,042 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("add") failed - address: ([("deployment" => "ezsela-message.war")]) - failure description: "JBAS010876: No deployment content with hash 5f870cae18c7f6f29b8964e18895199c3754de09 is available in the deployment content repository for deployment 'ez-message.war'. This is a fatal boot error. To correct the problem, either restart with the --admin-only switch set and use the CLI to install the missing content or remove it from the configuration, or remove the deployment from the xml configuraiton file and restart."
[Host Controller] 09:03:13,049 FATAL [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010933: Host Controller boot has failed in an unrecoverable manner; exiting. See previous messages for details.
[Host Controller] 09:03:13,099 INFO  [org.jboss.as] (MSC service thread 1-1) JBAS015950: JBoss EAP 6.1.0.GA (AS 7.2.0.Final-redhat-8) stopped in 29ms
09:03:13,427 INFO  [org.jboss.as.process.Host Controller.status] (reaper for Host Controller) JBAS012010: Process 'Host Controller' finished with an exit status of 99
09:03:13,431 INFO  [org.jboss.as.process] (Thread-8) JBAS012016: Shutting down process controller
09:03:13,432 INFO  [org.jboss.as.process] (Thread-8) JBAS012015: All processes finished; exiting

解決方法,修改domain.xml配置文件,把deploy內容刪除(下圖粗體內容):



    <server-groups>
        <server-group name="main-server-group" profile="full-ha">
            <jvm name="default">
                <heap size="1303m" max-size="1303m"/>
                <permgen max-size="256m"/>
            </jvm>
            <socket-binding-group ref="full-ha-sockets"/>
            <deployments>
                <deployment name="ezsela-message.war" runtime-name="ezsela-message.war"/>
                <deployment name="ezsela-message1.war" runtime-name="ezsela-message1.war"/>
            </deployments>
        </server-group>
        <server-group name="other-server-group" profile="full-ha">
            <jvm name="default">
                <heap size="1303m" max-size="1303m"/>
                <permgen max-size="256m"/>
            </jvm>
            <socket-binding-group ref="full-ha-sockets"/>
        </server-group>
    </server-groups>


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章