Hello,
i am trying to deploy a war with the following xml
<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure>
<ear-subdeployments-isolated>false</ear-subdeployments-isolated>
<deployment name="oambackend.jar">
<dependencies>
<module name="uk.co.westhawk.snmp" />
<module name="org.apache.shiro" slot="main" meta-inf="export" />
</dependencies>
</deployment>
<deployment name="oamui.war">
<dependencies>
<module name="org.primefaces" slot="main" meta-inf="export" />
<module name="org.apache.shiro" slot="main" meta-inf="export" />
</dependencies>
</deployment>
</jboss-deployment-structure>
I am using WildFly 14 and i get this:
ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) WFLYCTL0013: Operation ("full-replace-deployment") failed - address: ([]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"ProvaJAXRS.war\".STRUCTURE" => "WFLYSRV0153: Failed to process phase STRUCTURE of deployment \"ProvaJAXRS.war\"
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYSRV0168: Error loading jboss-deployment-structure.xml from MYPATH\\wildfly-14.0.1\\standalone\\tmp\\vfs\\temp\\temp76c9a88252c49b0d\\content-a26fe001980ec384\\META-INF\\jboss-deployment-structure.xml
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[10,2]
Message: WFLYSRV0174: Unexpected content of type 'element start', name is 'deployment', text is: 'null'"}}
i cannot understand the parsing error on the deployment element.
I would like to add that i am new to JBoss/WildFly, am trying to build up a web app and, right now, am trying to configure Primefaces on my project.
Thank you!
Instead of element name "deployment" you have to use "sub-deployment" in this case, specifying dependencies per sub-deployment.