tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Loading Jar files in a particular order on Tomcat 6
Date Fri, 02 Oct 2009 20:37:31 GMT
> From: Rasmus Larsen [mailto:kolibriasdf@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message