3 Replies Latest reply on Jul 22, 2013 9:37 AM by Stephen Coy

    module.xml : exclude classes, how?

    Livia Hauser Newbie



      I'am new on AS 7. I tried to use apache vfs as a global module. It's working, but I have to exclude org.apache.commons.vfs2.VFS class. I don't find a setting which excludes a named class.

      My module.xml:




      <?xml version="1.0" encoding="UTF-8"?>

      <module xmlns="urn:jboss:module:1.1" name="org.apache.commons.commons-vfs2" slot="2.0">


                          <resource-root path="commons-vfs2-2.0.jar" />

                          <!-- deprecated jar's which used by commons-vfs2-2.0.jar -->

                          <!-- { -->

                          <resource-root path="commons-codec-1.6.jar" />

                          <resource-root path="commons-httpclient-3.1.jar" />

                          <resource-root path="commons-io-1.4.jar" />

                          <resource-root path="httpcore-4.1.3.jar" />

                          <!-- } -->



                          <module name="javax.api" />

                          <module name="org.apache.commons.logging" />



                          <!-- export org.apache.commons.vfs2 only -->

                          <!-- deployments must not use classes which are part of httplcient, httpcore... -->


                                    <!-- !do not use this class inside AS! -->

                                    <path name="org/apache/commons/vfs2/VFS"/>


                          <!-- allow apache vfs2 -->

                          <include path="org/apache/commons/vfs2*" />

                          <!-- exlucde third party classes like httpclient -->

                          <exclude path="**" />





      The exclude of org/apache/commons/vfs2/VFS has no effect.

      How can I exclude a class (org.apache.commons.vfs.VFS)?


      Many thanks.