You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Douglass Turner <do...@gmail.com> on 2005/03/02 22:52:38 UTC

Strange WAR file creation error

Hello,

I am trying to create a WAR file of the following directoy:
duglaDataModel/
duglaDataModel/DataController.as
duglaDataModel/duglaDataModel.mxml
duglaDataModel/Employee.as
duglaDataModel/employees.xml
duglaDataModel/locations.xml
duglaDataModel/WEB-INF/
duglaDataModel/WEB-INF/classes/
duglaDataModel/WEB-INF/web.xml

So I cd to duglaDataModel and type: 
jar cvf c:\downloads\duglaDataModel .war .

But this fails with and exception:
added manifest
adding: DataController.as(in = 958) (out= 452)(deflated 52%)
adding: duglaDataModel.mxml(in = 2378) (out= 637)(deflated 73%)
adding: Employee.as(in = 391) (out= 210)(deflated 46%)
adding: employees.xml(in = 468) (out= 154)(deflated 67%)
adding: locations.xml(in = 225) (out= 80)(deflated 64%)
adding: WEB-INF/(in = 0) (out= 0)(stored 0%)
adding: WEB-INF/classes/(in = 0) (out= 0)(stored 0%)
adding: WEB-INF/web.xmljava.util.zip.ZipException: attempt to write
past end of STORED entry
	at java.util.zip.ZipOutputStream.write(ZipOutputStream.java:264)
	at sun.tools.jar.Main.addFile(Main.java:614)
	at sun.tools.jar.Main.create(Main.java:412)
	at sun.tools.jar.Main.run(Main.java:142)
	at sun.tools.jar.Main.main(Main.java:903)


Why? Note, as far as I can tell the directory is just fine since I can
copy it into webapps and the application works. I just can't WAR'ize
the directory. Any ideas?

Thanks,
Douglass Turner
email: douglass_dot_turner_at_gmail_dot_com

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