https://docs.jboss.org/author/display/A ... ing+in+AS7
It includes a module named javax.xml.bind.api; to get docx4j working in your WAR, you just need to include WEB-INF/jboss-deployment-structure.xml containing:
Using xml Syntax Highlighting
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">
<deployment>
<dependencies>
<module name="com.sun.xml.bind" />
</dependencies>
</deployment>
</jboss-deployment-structure>
<deployment>
<dependencies>
<module name="com.sun.xml.bind" />
</dependencies>
</deployment>
</jboss-deployment-structure>
Parsed in 0.001 seconds, using GeSHi 1.0.8.4
Details/discussion
jboss-as-7.1.1.Final\modules\javax\xml\bind\api\main says:
Using xml Syntax Highlighting
<module xmlns="urn:jboss:module:1.1" name="javax.xml.bind.api">
<dependencies>
<module name="javax.activation.api" export="true"/>
<module name="javax.xml.stream.api"/>
<module name="com.sun.xml.bind" services="import"/>
<module name="javax.api"/>
</dependencies>
<resources>
<resource-root path="jboss-jaxb-api_2.2_spec-1.0.3.Final.jar"/>
<!-- Insert resources here -->
</resources>
</module>
<dependencies>
<module name="javax.activation.api" export="true"/>
<module name="javax.xml.stream.api"/>
<module name="com.sun.xml.bind" services="import"/>
<module name="javax.api"/>
</dependencies>
<resources>
<resource-root path="jboss-jaxb-api_2.2_spec-1.0.3.Final.jar"/>
<!-- Insert resources here -->
</resources>
</module>
Parsed in 0.001 seconds, using GeSHi 1.0.8.4
jboss-as-7.1.1.Final\modules\com\sun\xml\bind\main says:
Using xml Syntax Highlighting
<module xmlns="urn:jboss:module:1.1" name="com.sun.xml.bind">
<properties>
<property name="jboss.api" value="private"/>
</properties>
<resources>
<resource-root path="jaxb-impl-2.2.4.jar"/>
<resource-root path="jaxb-xjc-2.2.4.jar"/>
<!-- Insert resources here -->
</resources>
<dependencies>
<module name="javax.api" />
<module name="javax.xml.bind.api" />
<module name="javax.xml.stream.api" />
</dependencies>
</module>
<properties>
<property name="jboss.api" value="private"/>
</properties>
<resources>
<resource-root path="jaxb-impl-2.2.4.jar"/>
<resource-root path="jaxb-xjc-2.2.4.jar"/>
<!-- Insert resources here -->
</resources>
<dependencies>
<module name="javax.api" />
<module name="javax.xml.bind.api" />
<module name="javax.xml.stream.api" />
</dependencies>
</module>
Parsed in 0.001 seconds, using GeSHi 1.0.8.4
so you might think the following would also work:
Using xml Syntax Highlighting
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">
<deployment>
<dependencies>
<module name="javax.xml.bind.api" />
</dependencies>
</deployment>
</jboss-deployment-structure>
<deployment>
<dependencies>
<module name="javax.xml.bind.api" />
</dependencies>
</deployment>
</jboss-deployment-structure>
Parsed in 0.001 seconds, using GeSHi 1.0.8.4
but it didn't seem to, perhaps because <property name="jboss.api" value="private"/> is given effect?