tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Austin <>
Subject RE: "No Host matches server name localhost" error
Date Tue, 30 Aug 2005 18:34:09 GMT
On Tue, 2005-08-30 at 13:25 -0500, Caldarale, Charles R wrote:
> > From: Brian Moseley [] 
> > Subject: Re: "No Host matches server name localhost" error
> > 
> > thanks for the pointer. after moving my context definition into 
> > server.xml
> Bad move.  This is specifically discouraged in 5.5.

It seems that Tomcat 5.5 discourages you from putting contexts in the
server.xml, and that is something that is a good idea as it's easier to
manage them when they are outside. But the context path is only
supported when you put it in the server.xml so you can't deploy the wars
to any other path other than the name of the context file so deploying
to /apps/admin.

I know there is the special ROOT.xml for the root context but that
doesn't solve the sub path issue which no one seems to know the answer

> > i wonder what the motivation was for making it such that i can't 
> > configure the root context in its own file?
> As far as I know, you can - just put your default context in
> webapps/ROOT, and its associated <Context> element in
> webapps/ROOT/META-INF/context.xml.
>  - 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 unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message