2 Replies Latest reply on Dec 2, 2014 6:52 AM by valsaraj viswanathan

    Deployment error with jboss-deployment-structure.xml in JBoss AS 7.1.1

    valsaraj viswanathan Master

      Hi,

      I am getting fowllowing error when I deploy jboss:deployment-structure:1.2 to JBoss AS 7.1.1.

       

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Error loading jboss-structure.xml from D:\jboss-as-7.1.1.Final\standalone\tmp\vfs\temp915a3fb469619377\content-321c5a4d7d0ffb81\contents\META-INF\jboss-deployment-structure.xml

              at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.parse(DeploymentStructureDescriptorParser.java:277) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

              at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.parse(DeploymentStructureDescriptorParser.java:249) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

              at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.deploy(DeploymentStructureDescriptorParser.java:134) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]        ... 5 more

      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[2,1]

      Message: Unexpected element '{urn:jboss:deployment-structure:1.2}jboss-deployment-structure'

              at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:108)

              at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)

              at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.parse(DeploymentStructureDescriptorParser.java:271)

       

      Here is my jboss-deployment-structure.xml:

      <?xml version="1.0" encoding="UTF-8"?>

      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">

        <deployment>

        <exclusions>

        <module name="javax.faces.api" />

            <module name="com.sun.jsf-impl" />

           </exclusions>

        <dependencies>

            <module name="javax.faces.api" slot="2.2"/>

            <module name="com.sun.jsf-impl" slot="2.2"/>

            <module name="com.app.configuration"/>

           </dependencies>

        </deployment>

      </jboss-deployment-structure>