Sub deployment .war in jboss-deployment-structure.xml was not found

Solution Verified - Updated -

Issue

  • When deploying a TEST.ear, a below deployment error shows and fails to deploy the application.
  • TEST.war is included in TEST.ear archive file.
  • User deployed TEST.ear archive file with defining application-name as TEST.war

Error log

08:28:10,499 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "TEST.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"TEST.war\".STRUCTURE" => "WFLYSRV0153: Failed to process phase STRUCTURE of deployment \"TEST.war\"
    Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYSRV0166: Sub deployment TEST.war in jboss-deployment-structure.xml was not found. Available sub deployments: "}}

TEST.ear/META-INF/jboss-deployment-structure.xml

<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
   <deployment>
  ..
   </deployment>
   <sub-deployment name="TEST.war">
   ...            
   </sub-deployment>
</jboss-deployment-structure>

Environment

  • JBoss EAP 6.x / 7.x
  • Unmanaged mode application deployment

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In