Different jar version

2007-10-10 Thread Andrew Hole
What happens if I put different jar versions of same classes on WEB-INF/lib? Example: project.jar (new version) project_old.jar (old version) Tomcat load and use both? Could Tomcat be confused with this situation? Thanks a lot

RE: Different jar version

2007-10-10 Thread Peter Crowther
From: Andrew Hole [mailto:[EMAIL PROTECTED] What happens if I put different jar versions of same classes on WEB-INF/lib? Example: project.jar (new version) project_old.jar (old version) Tomcat load and use both? Could Tomcat be confused with this situation? Each time a class is

Re: Different jar version

2007-10-10 Thread Tim Funk
It uses the first version of the class it finds when findClass is called. First version depends on which jar it looks in first. There is no defined order in which jars should be read first. So the behavior of Tomcat would be like any other java application - unknown. -Tim Andrew Hole wrote:

Re: Different jar version

2007-10-10 Thread David Delbecq
The question is better what happen if you have 2 classes with same name and package in the same classloader? Knowing which of both classes will be indeed loaded and used when need is undetermined. Only one of those classes will be used, but it there is no rule as to which will be used. This is

RE: Different jar version

2007-10-10 Thread Caldarale, Charles R
From: Andrew Hole [mailto:[EMAIL PROTECTED] Subject: Different jar version What happens if I put different jar versions of same classes on WEB-INF/lib? Really Bad Things. Could Tomcat be confused with this situation? Yes, as is the person who did such a thing. Depending on the order

Re: Different jar version

2007-10-10 Thread Andrew Hole
I'm getting OutofMemoryError ... Could have some relationship having two different versions of jar and memory leak? Thanks On 10/10/07, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Andrew Hole [mailto:[EMAIL PROTECTED] Subject: Different jar version What happens if I put different

Re: Different jar version

2007-10-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Hole wrote: I'm getting OutofMemoryError ... Could have some relationship having two different versions of jar and memory leak? It's very unlikely. As other posters have said, either one class gets loaded or the other one does, not

RE: Different jar version

2007-10-10 Thread Caldarale, Charles R
From: Andrew Hole [mailto:[EMAIL PROTECTED] Subject: Re: Different jar version I'm getting OutofMemoryError ... Could have some relationship having two different versions of jar and memory leak? Not likely, but it really depends on how your classes interact. Instead of indulging in rather