]
Stuart Douglas moved WFLY-4372 to WFCORE-568:
---------------------------------------------
Project: WildFly Core (was: WildFly)
Key: WFCORE-568 (was: WFLY-4372)
Affects Version/s: 1.0.0.Alpha19
(was: 8.2.0.Final)
Component/s: Server
(was: Server)
"jboss-deployment-structure.xml" with schema location fails
to deploy
---------------------------------------------------------------------
Key: WFCORE-568
URL:
https://issues.jboss.org/browse/WFCORE-568
Project: WildFly Core
Issue Type: Bug
Components: Server
Affects Versions: 1.0.0.Alpha19
Reporter: Wolfgang Knauf
Assignee: Stuart Douglas
Priority: Minor
A "jboss-deployment-structure.xml" with a schemaLocation attribute will fail to
deploy.
This is a sample file:
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:jboss:deployment-structure:1.1
http://www.jboss.org/schema/jbossas/jboss-deployment-structure-1_1.xsd&qu...
...
</jboss-deployment-structure>
And this is the deployment error:
And this is the parse exception:
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,129]
Message: JBAS018754: Unexpected content of type 'element start', name is
'{urn:jboss:deployment-structure:1.1}jboss-deployment-structure', text is:
'null'
at
org.jboss.as.server.deployment.module.descriptor.JBossDeploymentStructureParser11.unexpectedContent(JBossDeploymentStructureParser11.java:1129)
[wildfly-server-8.2.0.Final.jar:8.2.0.Final]
at
org.jboss.as.server.deployment.module.descriptor.JBossDeploymentStructureParser11.readElement(JBossDeploymentStructureParser11.java:211)
[wildfly-server-8.2.0.Final.jar:8.2.0.Final]
at
org.jboss.as.server.deployment.module.descriptor.JBossDeploymentStructureParser11.readElement(JBossDeploymentStructureParser11.java:69)
[wildfly-server-8.2.0.Final.jar:8.2.0.Final]
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
at
org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.parse(DeploymentStructureDescriptorParser.java:316)
[wildfly-server-8.2.0.Final.jar:8.2.0.Final]
... 8 more
The schemaLocation attribute makes sense, because Eclipse will be able to validate the
file,and you have code completion. With the JBossTools plugin, the "xmlns"
attribute is enough to get all this, because JBossTools adds this file to the xml catalog.