As I use docx4j library, I would like to use JAX-B classes from Jre 7 lib (rt.jar). I've created the following jboss-deployment-structure.xml and placed under EAR/Meta-Inf folder as per WildFly docs to access JDK classes. But its not working.
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">
<deployment>
<dependencies>
<system export="true">
<paths>
<path name="com/sun/xml/bind"/>
</paths>
</system>
</dependencies>
</deployment>
</jboss-deployment-structure>
Please validate the following
a) Placing under EAR project / Meta-inf
b) Is this structure correct for accessing JDK classes? - XML validation error is thrown
Error:
cvc-complex-type.2.4.b: The content of element 'deployment' is not complete. One of
'{"urn:jboss:deployment-structure:1.2":module-alias,
"urn:jboss:deployment-structure:1.2":exports,
"urn:jboss:deployment-structure:1.2":exclusions, "urn:jboss:deployment-structure:1.2":resources,
"urn:jboss:deployment-structure:1.2":transformers,
"urn:jboss:deployment-structure:1.2":local-last,
"urn:jboss:deployment-structure:1.2":exclude-subsystems}'
is expected.
Any help appreciated...