Post new topic   Reply to topic
Author Message
Registered Member
Registered Member
Joined: Jan 06, 2004
Posts: 23817

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:

<jboss_home>\server\<your server>\deploy\jbossweb-tomcat55.sar\META-INF

finding the line:

<attribute name="UseJBossWebLoader">false</attribute>

and change it to:

<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.
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
All times are GMT - 6 Hours
Post new topic   Reply to topic
® 2014 - Genuitec, LLC.