> 
> Server: jboss-5.1.0  
> 
> Java Version: jdk1.6.0\_14  
> 
> Deployment Method: ant v1.7  
> 
> Error: 08:40:04,260 WARN [ZipEntryContext] IGNORING: Failed to reinitialize context: vfszip:/home/username/jboss-5.1.0.GA/server/default/deploy/deployment.war  
> 
> java.util.zip.ZipException: error in opening zip file
> 
> 
> 

Error occurs if the server is running and I run an ant deploy on my src code. This is all being done via VI on our server.

I have searched our JBOSS settings but I can't seem to find the correct one to get rid of this error. Ideas?

Update
------

Here is our deployment method:

```
 <target name="deploy" depends="war" description="--> The deploy target (initially empty)">
    <copy file="scripts/xmlscript.groovy" todir="${jboss.bin.dir}" overwrite="true"/>
    <copy file="grails-app/views/xmlService/current.xml" todir="${jboss.bin.dir}" overwrite="true"/>
    <copy file="${war.file}" todir="${jboss.deploy.dir}" overwrite="true"/>
</target>

```