0 Replies Latest reply on Apr 3, 2015 11:06 AM by Nickolas Stojanovic

    Module not excluded although specified in jboss-deployment-structure.xml

    Nickolas Stojanovic Newbie

      I want to exclude the JAR modules\system\layers\base\javax\servlet\jstl\api\main\jboss-jstl-api_1.2_spec-1.1.2.Final.jar from my web application deployment.

      Hence I have the following configuration in src\main\webapp\WEB-INF\jboss-deployment-structure.xml:

      <?xml version='1.0' encoding='UTF-8'?>
      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
          <deployment>
              <exclusions>
                  <module name="javax.servlet.jstl.api"/>
              </exclusions>
              <dependencies>
                  <module name="deployment.my-dependencies.jar"/>
              </dependencies>
          </deployment>
      </jboss-deployment-structure>
      

      In the Wildfly log I see that my-dependencies.jar is added as a ModuleDependency. But when searching for javax.servlet.jstl.api I only see this:

      2015-04-03 15:22:11,971 DEBUG [org.jboss.modules] (ServerService Thread Pool -- 12) Module javax.servlet.jstl.api:main defined by local module loader @1f7c9157 (finder: local module finder @2b29f6e7 (roots: C:\Users\me\Documents\wildfly-8.2.0.Final\modules,C:\Users\me\Documents\wildfly-8.2.0.Final\modules\system\layers\base))

      Why isn't the module excluded?
      Why isn't here even an error message that the module wasn't excluded? The XSD validation of the file finished without an error.