 |
|
 |
 |
|
 |
 |
| Author |
Message |
|
|
Post subject: [JBoss] UnsatisfiedLinkError with library dependency
Posted: Jul 20, 2006 - 09:43 PM
|
|
Moderator


Joined: Jan 06, 2004
Posts: 23311
|
|
In some cases of complex EAR deployments under JBoss, it's possible to have code issue a java.lang.UnsatisfiedLinkError even though the dependent library has been properly deployed into JBoss. The work around for this problem is to tell JBoss to use it's "web loader" by editing the following file:
| Code: |
<jboss_home>\server\<your server>\deploy\jbossweb-tomcat55.sar\META-INF
|
finding the line:
| Quote: |
<attribute name="UseJBossWebLoader">false</attribute>
|
and change it to:
| Quote: |
<attribute name="UseJBossWebLoader">true</attribute>
|
The reasoning behind this seems to be since JBoss uses Tomcat as it's servlet contained, it must use an additional mechanism to bridge the Servlet Container/EJB Container gap when referrencing libraries that can be loaded from the different module types. Using the JBoss web loader does exactly that. |
|
|
| |
|
|
|
 |
|
|
| |
|
|
 |
|
 |
|
|
|
 |