File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes invalid LOC header Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "invalid LOC header" Watch "invalid LOC header" New topic

invalid LOC header

Ishrayansh Nath
Ranch Hand

Joined: Nov 05, 2004
Posts: 45
I zip using //* JarOutputStream jar = new JarOutputStream();
JarFile flJar = new JarFile(strJarFileName);
Enumeration enuJarEntries = flJar.entries(); *//

the application(contains folder or files and one vxml file or tas application file and one property file)
HTTP ERROR: 500 jzentry == 0, jzfile = 202128800, total = 3, name = \samplInc\sample\Server\ver\import_oar\sample_1_0.oar, i = 1, message = invalid LOC header (bad signature)

How I solve this error?

read this also?

Heonkoo Lee
Ranch Hand

Joined: Feb 10, 2005
Posts: 85
I remember having gotten that kind of error message before when I rebuilt and redeployed .war file without restarting the server. But, after I restarted the server, the error was gone.

[ March 29, 2005: Message edited by: Heonkoo Lee ]
I agree. Here's the link:
subject: invalid LOC header
It's not a secret anymore!