title: In JBoss can I configure a "shared library" location?
body: <p>I am using JBoss 4.2.2.GA app server in a development environment. I have a WAR file, <code>MyWar.war</code>, and a JAR file <code>ExternalJar.jar</code>. These files are structured in the following way:</p>
  
  <p>Application WAR file:</p>
  
  <pre><code>MyWar.war
  |
  |--- AppClass1.class
  |
  |--- AppClass2.class    
  </code></pre>
  
  <p>External jar file (provided by client):</p>
  
  <pre><code>ExternalJar.jar
  |
  |--- ExternalClass.class
  </code></pre>
  
  <p>ExternalClass needs to use AppClass1 and AppClass2 needs to use ExternalClass. When I deploy the WAR in JBoss and put JAR in JBoss' class path, I get a LinkageError on instantiating <code>ExternalClass</code> when I run the app. It seems as though the WAR sees the <code>ExternalClass</code>, but <code>ExternalClass</code> cannot access classes within the WAR.</p>
  
  <p>If I manually put <code>ExternalJar</code> in the WAR file (WEB-INF/lib), it works fine. But we'd rather not modify archive files to maintain consistency with our production deployments.</p>
  
  <p>Is there any configuration or setting in JBoss that allows for a shared library folder that will be included in the class path for the <em>app</em>?</p>