MyEclipse: [JBoss] UnsatisfiedLinkError with library dependency

support-rkalla - Jul 20, 2006 - 09:43 PM
Post subject: [JBoss] UnsatisfiedLinkError with library dependency
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.
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits