1 Reply Latest reply on Oct 12, 2015 5:17 PM by John Liptak

    Jboss EAP 6.4 custom module

    David Yu Newbie

      Hi,

      I tried to create Jboss module that includes jks and jar files. Though I am able to make it work, but I don't understand why it works. When I define resource-root for both jar and jks files.

       

      <module xmlns="urn:jboss:module:1.1" name="my.module">

          <resources>

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

              <resource-root path="mykey.jks"/>

          </resources>

      </module>

       

      I get the following error:

       

          org.jboss.modules.xml.XmlPullParserException: Failed to add resource root 'mykey.jks' at path 'mykey.jks' (position: END_TAG seen ..."foo.jar"/> \r\n ... @3:42) caused by: java.util.zip.ZipException: error in opening zip file

       

      But if I define the resource-root as <resource-root path="."/> everything works fine.

       

      Does anyone knows why it works when I use "." as resource-root path? What's the magic that Jboss did?

       

      Thanks David