title: JBoss 7 - Loading jars programatically from a module classloader
body: <p>I have a WAR that I have deployed to JBoss 7 that dynamicially loads jar resources using its context class loader.</p>
  
  <pre><code>final ClassLoader cl = Thread.currentThread().getContextClassLoader();
  propertiesUrls = cl.getResources(TRANSLATION_PROPERTIES);
  </code></pre>
  
  <p>However the context classloader only looks for resources in the WEB-INF/lib folder</p>
  
  <p>ModuleClassLoader for Module "deployment..war:main" from Service Module Loader</p>
  
  <p>How do I get hold of a classloader for a specific module in jboss that I have the resources in. I have the jars that i need to load in a custom module in JBOSS_HOME/modules/org/custom/... </p>