Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Servlet Interest »

Re: help deploying war file

Shivan

2003-09-25

Replies:

what's a war file? what is it used for? how is it different from jar?

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:SERVLET-INTEREST@(protected)
Carter, Scott
Sent: Monday, September 22, 2003 12:49 PM
To: SERVLET-INTEREST@(protected)
Subject: help deploying war file


I know this process should be very straight forward, but I am having a
little trouble.

I created a war file at the top level of my web application
$TOMCAT_HOME/webapps/j by using jar cvf xsite.war .
I moved this file (xsite.war) to $TOMECAT_HOME/webapps/x and made a new
entry in server.xml as follows:

    <Context path="/x" docBase="x" debug="0" reloadable="false"
crossContext="true"/>

when I went to hit the site http://localhost:8080/x it gave me the screen
for a directory listing just showing xsite.xml even though the web.xml file
in the war file has a welcome file. The site works fine unpackaged under
the /j/ path.



please help

___________________________________________________________________________
To unsubscribe, send email to listserv@(protected)
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to listserv@(protected)
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html


©2008 junlu.com - Jax Systems, LLC, U.S.A.