struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Burr Sutter <sut...@bravepoint.com>
Subject Re: WAR file???
Date Mon, 12 Nov 2001 18:29:09 GMT

If I have a directory structure that looks like:
\MyApps\mywar\WEB-INF\lib
I will use something like:
jar -cvf my.war -C  mywar .
executed from the MyApps directory. Note the space between "mywar" and "."
The jar.exe ships with the JDK.  The key thing is making sure the paths in the resulting war
file are accurate. For instance, the file called web.xml must be in WEB-INF.  And the struts.jar
goes in WEB-INF\lib.
If you are on windows you can use Winzip to view the file and check your paths.

The benefit of the WAR file is that it is a single file that can be deployed on any J2EE compliant
application server/servlet engine. 
The standard for the web application directory structure is documented in the Servlet specification
from Sun. 
--
Sent via jApache.org

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message