tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <>
Subject RE: server.xml
Date Thu, 18 Jan 2007 14:41:23 GMT
> From: [] 
> Subject: server.xml
> 1. works fine when called from the server machine with the link 
> localhost:8080\test\test.html

The above indicates Tomcat is listening on port 8080.  However, it's
unlikely the above actually worked with back slashes in the URL.

> 2. but shows page not 
> found

You left out the port number.  If you want Tomcat to use port 80 (the
browser default), change the configuration of the <Connector> element in
the server.xml file and restart Tomcat.

>       <Host name="" appBase="webapps">
>         <Context path="" docBase="."/>
>       </Host>

Putting <Context> elements in server.xml is strongly discouraged.  Also,
a docBase of "." indicates the app is deployed _in_ the webapps
directory rather than under it.  At best, that's inviting confusion and

The default app should be placed in a directory named ROOT (or packaged
in a file named ROOT.war) under the appBase directory.  If you're using
Tomcat's normal default app, you don't need a <Context> element for it
(that's the case for many apps).

 - Chuck

MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message