• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

class loading issue in Jboss

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using an ear deployment on Jboss portal 2.4 (App server is 4.0.5) and my application refers to 2 third party jars. These third party jars refers to System classloader by using ClassLoader.getSystemClassLoader(). So it is necessary to load these 2 third party jars using System class loader to make it work properly. When I deploy the ear to jboss , by default these jar files are loaded using "WebAppLoader" of Jboss and program execution halts at one point where third party jars compare it's class loader with system class loader, since comparison result is false. Is there any way by which these jars are put in either server configuration directory (e.g. <jboss-home>/server/default) or any of its sub directories and can be loaded using System class loader.

Thanks in advance.
Abhijeet
[ July 25, 2007: Message edited by: Abhijeet Vaidya ]
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See if this helps
 
Abhijeet Vaidya
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

My problem is solved now. I can load the third party jars residing in WEB-INF/lib, using system classloader by dynamically modifying the class path. Credit goes to this.. I hope that System classloader behavior (extending URl ClassLoader) will be the same across platforms.

Thanks.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic