tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <bo...@binarix.com>
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
java.util.zip.ZipFile$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 java.util.zip/java.util.jar that come
without those 'features'?

Bojan

Mime
View raw message