tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: Making my servlet the default instead of what's in ROOT
Date Sun, 17 Jul 2005 16:37:08 GMT
Tomcat version?


Chris Abajian wrote:
> More clues:
> We got it to work if you put
> <Context path="" docBase="webapps/<our unpacked war file dir>" 
> in the top-level server.xml file.  It does NOT work if you put this
> context fragment in $CATALINA_HOME/conf/Catalina/localhost
> the documentation on auto-deployment is frustrating in a couple of
> points.  My working hypothesis is that Catalina finds and parses the XML
> context fragment correctly, but then, when encountering the war file
> (or expanded directory) containing WEB-INF/web.xml it generates a new
> context automatically.  The docs are vague on this, offering a warning
> that explicit contexts don't play well with autodeployed apps.
> Can anyone offer some insights into this?  Is this the intended
> behavior?
> On Wed, 2005-07-13 at 13:13 -0700, Chris Abajian wrote:
>>I want http://mylocal.tomcat.machine/ to run my servlet's hello world
>>(instead of whatever's in ROOT) without having to put the servlet name
>>in the path, i.e. I want it to be the "front door" for the domain.
>>Can't make this work, no amount of futzing with Context path= or
>>docBase= does it.
>>This is a stupid question but I've been Googling and tweaking for a day
>>now.  Help?

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

View raw message