Hi I'm deloying a web application packed in a war file. I'm using a jar file within the war file as a library.
This library reads a text file that is in the jar and it works properly running the test application of that jar file using (java -jar library.jar), but when I use the library, packaged within the war file it throws a ZipException when try to read from the file. I don't want to extract all the files in the jar to add them to the war but use the library as the jar. I'm using JBOSS jboss 3.0.0 with bundeled tomcat 4.0.3 I really don't know what happen 'cause I tested the jar file independent and worked fine reading the text file but when packaged in the war doesn't works. Thanks for your help bye James This is the exception and part of the stack trace ---------------------------------------- invalid stored block lengths java.util.zip.ZipException: invalid stored block lengths at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:139) at java.io.DataInputStream.read(DataInputStream.java:167) at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:404) at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:442) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:179) at java.io.InputStreamReader.read(InputStreamReader.java:167) at java.io.BufferedReader.fill(BufferedReader.java:136) at java.io.BufferedReader.readLine(BufferedReader.java:299) at java.io.BufferedReader.readLine(BufferedReader.java:362) =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com