tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <>
Subject Re: Weird Classloaders
Date Sat, 15 Sep 2001 05:19:25 GMT
Remy Maucherat wrote:

> TC 4 uses a 100% custom URLClassLoader clone, and it accesses the JARs
> directly (using JarFile objects). I'm really careful about properly closing
> these objects when the CL is dumped when reloading. However, there are still
> problems, at least under Windows (the symptoms are roughly what you
> describe). So it looks like the problems are with the java.util.jar package.

After playing a bit more with the whole thing, it turns out that there
is an IOException thrown when bytes are read from$1 (I'm guessing 1 is an internal class in ZipFile
which is actually an InputStream - do I see JDK people giving a nod?).
The ZipFile object is brand new after jar gets refreshed and yet it
seems to be reading something totally bogus data.

One other somewhat interesting observation: if the jar grows, the class
file cannot be found. If it shrinks, class is found but properties files
packed in there are not. Really amusing...

Anyone knows alternatives to that come
without those 'features'?


View raw message