You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Himanshu Gusain <gu...@gmail.com> on 2014/10/24 17:14:23 UTC

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 <in...@yahoo.com.invalid> 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

AW: exception expanding war file

Posted by "Jan Matèrne (jhm)" <ap...@materne.de>.
Have you tried to unzip the war manually using another program?

Jan

> -----Ursprüngliche Nachricht-----
> Von: KM [mailto:info4km@yahoo.com.INVALID]
> 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 <gu...@gmail.com>
> To: Ant Users List <us...@ant.apache.org>; KM <in...@yahoo.com>
> 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 <in...@yahoo.com.invalid> 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


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: exception expanding war file

Posted by KM <in...@yahoo.com.INVALID>.
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 <gu...@gmail.com>
To: Ant Users List <us...@ant.apache.org>; KM <in...@yahoo.com> 
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 <in...@yahoo.com.invalid> 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