3 Replies Latest reply on Sep 28, 2015 4:59 AM by Frank Cornelis

    urn:jboss:deployment-structure:1.2

    Frank Cornelis Apprentice

      Within my EAR file I have a META-INF/jboss-deployment-structure.xml file to include module dependencies towards my lightweight EAR.

      However, if I explicitly add the correct namespace declaration to this XML config file, JBoss EAP explodes.

      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2"
                                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                                  xsi:schemaLocation="urn:jboss:deployment-structure:1.2 http://www.jboss.org/schema/jbossas/jboss-deployment-structure-1_2.xsd">
          <ear-subdeployments-isolated>true</ear-subdeployments-isolated>
          <deployment>
              <dependencies>
                  <module name="org.apache.commons.logging" export="true"/>
                  <module name="org.slf4j" export="true"/>
                  <module name="org.apache.commons.codec" export="true"/>
                  <module name="org.apache.commons.lang" export="true"/>
                  <module name="org.joda.time" export="true"/>
                  <module name="org.apache.santuario.xmlsec" export="true"/>
              </dependencies>
          </deployment>
      </jboss-deployment-structure>
      

      gives me

      java.util.NoSuchElementException: No child 'name' exists: java.util.NoSuchElementException: No child 'name' exists
          at org.jboss.dmr.ModelValue.requireChild(ModelValue.java:369)
      

       

      One would at least expect that you can add the regular XML namespace declaration without running into trouble.

       

      Is this a bug in EAP 6?