无法将部署的war文件分配给jboss as 7中的main-server-group

8aqjt8rx  于 2023-10-20  发布在  其他
关注(0)|答案(1)|浏览(140)

我有jboss在域模式。我无法将部署的war文件分配给main-server-group。我可以将其分配给其他服务器组。
我收到以下错误:

Failed to add Deployment middleware.war

Unexpected HTTP response: 500
    Request
    {
        "operation" => "composite",
        "address" => [],
        "steps" => [
            {
                "address" => [
                    ("server-group" => "main-server-cgroup"),
                    ("deployment" => "middleware.war")
                ],
                "operation" => "add"
            },
            {
                "address" => [
                    ("server-group" => "main-server-cgroup"),
                    ("deployment" => "middleware.war")
                ],
                "operation" => "deploy"
            }
        ]
    }

    Response

    Internal Server Error
    {
        "outcome" => "failed",
        "result" => {
            "step-1" => {"outcome" => "success"},
            "step-2" => {"outcome" => "success"}
        },
        "failure-description" => "JBAS010839: Operation failed or was rolled back on all servers.",
        "rolled-back" => true,
        "server-groups" => {"main-server-cgroup" => {"host" => {"master" => {"server-1" => {"response" => {
            "outcome" => "failed",
            "result" => {
                "step-1" => {
                    "outcome" => "failed",
                    "rolled-back" => true
                },
                "step-2" => {
                    "outcome" => "failed",
                    "failure-description" => {
                        "JBAS014671: Failed services" => {"jboss.web.deployment.default-host./middleware" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./middleware: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context
        Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context"},
                        "JBAS014879: One or more services were unable to start due to one or more indirect dependencies not being available." => {
                            "Services that were unable to start:" => ["jboss.deployment.unit.\"middleware.war\".deploymentCompleteService"],
                            "Services that may be the cause:" => ["jboss.binding.modcluster"]
                        }
                    },
                    "rolled-back" => true
                }
            },
            "failure-description" => {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {
                "JBAS014671: Failed services" => {"jboss.web.deployment.default-host./middleware" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./middleware: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context
        Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context"},
                "JBAS014879: One or more services were unable to start due to one or more indirect dependencies not being available." => {
                    "Services that were unable to start:" => ["jboss.deployment.unit.\"middleware.war\".deploymentCompleteService"],
                    "Services that may be the cause:" => ["jboss.binding.modcluster"]
                }
            }}},
            "rolled-back" => true
        }}}}}}
    }
a0x5cqrl

a0x5cqrl1#

当我复制一个现有的战争,并没有改变上下文根时,我得到了一个类似的错误。
对我来说,我复制了HelloWorld.war并创建了GetVendors.war,我想做的就是重新创建HelloWorld。不幸的是,我得到了一个错误,因为jboss-web.xml中的context-root属性,它应该在war的顶层。
我刚换

<jboss-web>
  <context-root>/HelloWorld</context-root>
</jboss-web>

<jboss-web>
  <context-root>/GetVendors</context-root>
</jboss-web>

和它的工作.

相关问题