Re: exception expanding war file

KM <[email protected]>
Newsgroups gmane.comp.jakarta.ant.user
Message-ID <[email protected]>
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.