JBoss AS7 has a class loading mechanism which is different from previous versions. See generally:
https://docs.jboss.org/author/display/A ... ing+in+AS7It 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:
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">
<deployment>
<dependencies>
<module name="com.sun.xml.bind" />
</dependencies>
</deployment>
</jboss-deployment-structure>
Details/discussionjboss-as-7.1.1.Final\modules\javax\xml\bind\api\main says:
<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> ...