Maybe a broken link?

-----Original Message-----
From: dduuggllaa [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 2 March 2005 09:15
To: [email protected]
Subject: [flexcoders] pop quiz for app server folks




Can a wise hand please explain to me why jar refuses to create a .war
file from my application tree. I am able to successfully copy the
directory to the webapps directory and run this. Now I'm trying the
.war approach. Weird.

I cd to c:/some/place/duglaDataModel and type:

jar cvf c:/downloads/duglaDataModel.war .

Here's the echo (not the 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)

My directory looks like:
duglaDataModel:
total 7
drwx------+ 3 turner None 0 Mar 1 18:05 ./
drwx------+ 5 turner None 0 Mar 1 18:06 ../
-rwx------+ 1 turner None 958 Mar 22 2004 DataController.as*
-rwx------+ 1 turner None 391 Mar 21 2004 Employee.as*
drwx------+ 3 turner None 0 Mar 1 18:03 WEB-INF/
-rwx------+ 1 turner None 2378 Mar 1 14:34 duglaDataModel.mxml*
-rwx------+ 1 turner None 468 Feb 25 11:20 employees.xml*
-rwx------+ 1 turner None 225 Feb 25 11:19 locations.xml*

duglaDataModel/WEB-INF:
total 9
drwx------+ 3 turner None 0 Mar 1 18:03 ./
drwx------+ 3 turner None 0 Mar 1 18:05 ../
drwxr-xr-x+ 2 turner None 0 Mar 1 18:05 classes/
-rwx------ 1 turner None 8877 Mar 1 17:44 web.xml*

duglaDataModel/WEB-INF/classes:
total 0
drwxr-xr-x+ 2 turner None 0 Mar 1 18:05 ./
drwx------+ 3 turner None 0 Mar 1 18:03 ../


Cheers,
Douglass Turner






Yahoo! Groups Links








~~-------
This e-mail may contain confidential information. If you are not the intended 
recipient, please notify the sender immediately and delete this e-mail from 
your system. You must not disclose this e-mail to anyone without express 
permission from the sender. The contents of all e-mails sent to and received 
from Optus may be scanned, stored, or disclosed to others at Optus discretion.

Optus has exercised care to avoid errors in the information contained in this 
e-mail but does not warrant that the information is error or omission free. The 
information (including any pricing information) contained in this e-mail is 
subject to change. This e-mail is not a quotation or proposal and no 
contractual obligations arise until you and Optus sign a formal written 
contract or formal variation to your existing contract. 

Any pricing contained in this e-mail is exclusive of GST unless otherwise 
stated.
********************************************************************



Reply via email to