the following url:
file:/ ... /work/Catalina/localhost/myapp/loader/pippo.jar
but the directory ... /work/Catalina/localhost/myapp/loader/ does
not contain pippo.jar
that is placed in .../myapp/WEB-INF/classes/pippo.jar
thanks in advance
Simone Pierazzini
On Wed, 1 Dec 2004 09:47:12 -0500, Shapira, Yoav [EMAIL PROTECTED] wrote:
Hi,
I use URLClassLoader to create class loaders that manage jars in WEB-
INF/classes
In WEB-INF/classes I have many jars that are incompatible each other
(they have different classes with the same name inside).
On Wed, 01 Dec 2004 09:49:33 -0500, Wade Chandler
[EMAIL PROTECTED] wrote:
I never try to use relative paths in getResource. I always do this
getResource(/pippo.jar); Also, I usually pick a class in my package
that I know will certainly be in my web-app classes folder or one of
it's jars.
On Wed, 1 Dec 2004 10:11:49 -0500, Shapira, Yoav [EMAIL PROTECTED] wrote:
Hi,
it should be but it isn't because tomcat does not make a copy, and the
returned url is unresolvable.
So you're saying the jar in $CATALINA_HOME/work is physically different
than the one in your WEB-INF/lib
Hi,
I use URLClassLoader to create class loaders that manage jars in WEB-
INF/classes
In WEB-INF/classes I have many jars that are incompatible each other
(they have different classes with the same name inside).
Wouldn't it be much easier to unjar and re-jar with only the classes
Right, thought you were creating your own URLClassLoader instance to
locate your jars dynamically (not getting the current). Barring that
and looking at your post and then looking at one of Yoavs, then my guess
is the ClassLoader in tomcat is for what ever reason doing something like:
if(
On Wed, 1 Dec 2004 11:27:01 -0500, Shapira, Yoav [EMAIL PROTECTED] wrote:
Hi,
regardless of the directory being lib or classesseems like a bug
to
me as any file in the classpath should just be a file as a jar file
should have to be added to the classpath like it's a directory.
I