> From: Rasmus Larsen [mailto:kolibria...@gmail.com]
> Subject: Loading Jar files in a particular order on Tomcat 6
> 
> I'm working on a web application where I have dependencies on two
> different jars containing two different versions of the same class.

Ugly, at best.

> I've created a custom class loader, which first first tries to load
> classes from a specific set of jars, and if that fails it just loads
> the class in the standard manner.

Unless you have explicit control over the classpath used by each classloader in 
the hierarchy (which you don't), a custom classloader is pretty much the only 
way to handle this.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to