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, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
