AW: exception expanding war file

Jan Matèrne (jhm) <[email protected]>
Newsgroups gmane.comp.jakarta.ant.user
Message-ID <005201cff022$f831a0b0$e894e210$@de>
Have you tried to unzip the war manually using another program?

Jan

> -----Ursprüngliche Nachricht-----
> Von: KM [mailto:[email protected]]
> Gesendet: Freitag, 24. Oktober 2014 17:17
> An: Himanshu Gusain; Ant Users List
> Betreff: Re: exception expanding war file
> 
> we've already checked and the sum is the same as the original.  I think
> maybe the program being used to unzip or something?
> 
> 
> ________________________________
>  From: Himanshu Gusain <[email protected]>
> To: Ant Users List <[email protected]>; KM <[email protected]>
> Sent: Friday, October 24, 2014 11:14 AM
> Subject: Re: exception expanding war file
> 
> 
> 
> seems like a corrupted War. you can check the md5 checksum.
> 
> 
> 
> 
> On Fri, Oct 24, 2014 at 8:13 PM, KM <[email protected]> wrote:
> 
> Task is expanding a war file.  this has worked for all of my tests but
> not working at customer site.  the OS is Windows Server 2008 R2. the
> exception is:
> >BUILD FAILED
> >file:S:/xxxxx/xxxxxx/nftempdir/servletswar.xml:5:
> >Error while expanding S:\xxxxx\xxxxx\webapps\theservlets.war
> >        at
> >org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:164)
> >        at
> >org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:127)
> >        at
> >org.apache.tools.ant.Task.perform(Task.java:341)
> >        at
> >org.apache.tools.ant.Target.execute(Target.java:309)
> >        at
> >org.apache.tools.ant.Target.performTasks(Target.java:336)
> >        at
> >org.apache.tools.ant.Project.executeTarget(Project.java:1339)
> >        at
> >org.apache.tools.ant.Project.executeTargets(Project.java:1255)
> >        at
> >org.apache.tools.ant.Main.runBuild(Main.java:609)
> >        at
> >org.apache.tools.ant.Main.start(Main.java:196)
> >        at
> >org.apache.tools.ant.Main.main(Main.java:235)
> >Caused by:
> >java.util.zip.ZipException: invalid stored block lengths
> >        at
> >java.util.zip.InflaterInputStream.read(Unknown Source)
> >        at
> >java.util.zip.ZipInputStream.read(Unknown Source)
> >        at
> >java.io.FilterInputStream.read(Unknown Source)
> >        at
> >org.apache.tools.ant.taskdefs.Expand.extractFile(Expand.java:247)
> >        at
> >org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:157)
> >        ... 9 more
> >
> >What could cause this?  I thought maybe the zip/unzip program(s)
> installed on platform or something.  I doubt it is related at all
> specifically to ant or java.  any thoughts?
> >
> >thanks
> >KM
> >
> 
> 
> --
> 
> Regards
> 
> Himanshu Gusain
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.