I am using JBoss 4.2.2.GA app server in a development environment. I have a WAR file, MyWar.war
, and a JAR file ExternalJar.jar
. These files are structured in the following way:
Application WAR file:
MyWar.war
|
|--- AppClass1.class
|
|--- AppClass2.class
External jar file (provided by client):
ExternalJar.jar
|
|--- ExternalClass.class
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 ExternalClass
when I run the app. It seems as though the WAR sees the ExternalClass
, but ExternalClass
cannot access classes within the WAR.
If I manually put ExternalJar
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.
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 app?