Java Mailing List Archive

http://www.junlu.com/

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

Re: help deploying war file

Burke, Timothy R

2003-09-22


Scott

Just a guess, but this type of thing bit me when I didn't use relative URLs in my web app.
Hope this helps you.
--
______________________________________________________________________
Timothy Burke <timothy.r.burke@(protected)
DSS F20 = B5AD 6495 D7B8 381F 91F8 D929 E47A A82D F4C2 D990 (1024)
(303)977-0691 (work) / (303)977-4965 (work fax)




-----Original Message-----
From: Carter, Scott [mailto:Scott.Carter@(protected)]
Sent: Monday, September 22, 2003 1: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.