DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5684>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5684 WEB-INF/lib jar file loading and operations problems. ------- Additional Comments From [EMAIL PROTECTED] 2002-01-04 02:54 ------- One workaround is to use straight classes rather then jars (i.e. unpack your jars in the classes directory). As for the ZIP class problems, I've submitted this bug to Sun a number of times and I was able to replicate it on Windows and Linux. But, they wouldn't buy it. The following sample program illustrates the problem: ------------------------------------------------------ import java.io.*; import java.net.*; import java.util.*; class ZipFileTest extends ClassLoader{ public static void main(String argv[]){ LineNumberReader in=new LineNumberReader(new InputStreamReader(System.in)); while(true){ Properties p=new Properties(); try{ // Get the resource using the first ClassLoader object (first set) ZipFileTest t=new ZipFileTest(); System.err.println("t="+t); InputStream i=t.getResourceAsStream("/some/properties/file.props"); System.err.println("i="+i); p.load(i); p.save(System.out,""); // Get rid of the objects i=null; t=null; p=null; // Wait for user input while replacing the jar in.readLine(); } catch(Throwable t){ System.out.println(t); t.printStackTrace(System.out); System.exit(1); } } } } ------------------------------------------------------ All you need to do is have a JAR file with a properties files inside it (make sure you change the name). Run the program and it will print out the properties file. After that it'll wait for your input. At that point replace the JAR file with another JAR file that contains the same properties file, but is otherwise different. After the input is received, the program will fail while reading the JAR file, given the JAR file is sufficiently different (i.e. at times there will be no problems). Bojan -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>