I am trying to exclude the modules in JBOSS 7.1.1 and it seems like JBOSS just ignores my jboss-deployment-structure.xml.
I have placed this in the META-INF of my EAR. Here's an example of my config file:
<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure>
<deployment>
<exclusions>
<module name="java.xml.bind.api" /> <!- still see it there -->
<module name="somerandomname" /> <!- does not even complain when this doesn't exist -->
</exclusions>
</deployment>
</jboss-deployment-structure>