Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » J2EE Interest »

Re: Class Loading in Web Tier

Katz Guy

2003-07-27

Replies:

Message
actually;
the default of class lodaing is to get the jars from the 'father class loader' which is simply the system classpath. so at most time putting the jars in the web-inf/lib directory would not help.
most App Servers admionistration tools let you choose the class loading scheme of your choice so you can specifically ask the container to load the jars from the WAR file first.
-----Original Message-----
From: Rathinavelu, Senthilkumar [mailto:RathinaveluS@DNB.COM]
Sent: Friday, July 25, 2003 7:38 PM
To: J2EE-INTEREST@JAVA.SUN.COM
Subject: Re: Class Loading in Web Tier

Include the Xereces API jar in the WAR itself.
-----Original Message-----
From: Vikram Naik [mailto:deadly_naik@HOTMAIL.COM]
Sent: Friday, July 25, 2003 12:35 PM
To: J2EE-INTEREST@JAVA.SUN.COM
Subject: Class Loading in Web Tier

Hello,
 
 How do we make it sure that a class loaded in a web-application is picked up from the war, and not from the web servers lib. Do we have any configurable property in web-servers or appservers to do so.
 
The problem I am facing is... We are using Xerces API to do some xml parsing, but the parser is not able to find the class which it has to load from the war, say the DocumentClass which extends the DocumentImpl class of xerces. Have anyone faced such a problem with xerces.
 
Please comment.
 
Regards,
Vikram Naik
©2008 junlu.com - Jax Systems, LLC, U.S.A.