0 Replies Latest reply on Dec 6, 2011 8:20 PM by alllle

    Module classloader ignores resource-root definition

    alllle

      I have a SAR created with the following structure:

      -mysar.sar

         +---mylib.jar

         +---com

                +---mypackage

                         +---myclass

         +--META-INF

                +---jboss-deployment-structure.xml

       

       

      In the jboss-deployment-structure.xml file, I have:

       

      {code:xml}

      <jboss-deployment-structure>

          <deployment>

              <resources>

                  <resource-root path="mylib.jar" />

              </resources>

          </deployment>

      </jboss-deployment-structure>

      {code}

       

      So I expect that myclass can find the classes inside the mylib.jar, but no, it can not.

       

      Anyone know what is wrong?

       

      Thanks,