This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 309
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: 309
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
 
Consider Paul's rocket mass heater.
 
subject: Tomcat cannot unzip a War file
 
Similar Threads
how to put two different folders(which is in different location) into one zip entry
Compress .zip using Java
Java ZipFile
java.util.zip : Unzipping gives Windows error
Windows does not recognize Java created ZIP