File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat cannot unzip a War file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat cannot unzip a War file" Watch "Tomcat cannot unzip a War file" New topic
Author

Tomcat cannot unzip a War file

Alejandro Barrero
Ranch Hand

Joined: Aug 01, 2005
Posts: 302
I am creating war files with a program using java.io.zip. When I examine the files with winzip they are correct. If I unzip the files and zip them with winzip they deploy correctly in tomcat. The code that I am using to zip is:

I don't know what else I have to do.

Your help will be greatly appreciated.

Alejandro Barrero


Your help will be greatly appreciated,
Alejandro Barrero
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Do you have a small example that you can email to me?
If so, I'll be happy to take a look and see if I can't spot the problem.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Alejandro Barrero
Ranch Hand

Joined: Aug 01, 2005
Posts: 302
I will be happy to mail you the war directory and the program that i am using to zip. What is your e-mail address?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

ben@souther.us
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Tomcat cannot unzip a War file
 
Similar Threads
Windows does not recognize Java created ZIP
Java ZipFile
how to put two different folders(which is in different location) into one zip entry
Compress .zip using Java
java.util.zip : Unzipping gives Windows error