> Liam Morley wrote:
>
> > Lars,
> > You'll want to look at your "server.xml" file in the conf/ folder,
> > specifically towards the bottom (<Context />, "Special webapps").
>
> Hi Liam.
>
> My problem is that I want to be able to create new web applications
> without editing the config file (server.xml). That is, if I
> create a new
> directory in TOMCAT_HOME/webapps (with WEB-INF subdirectory
> and so on),
> then it should be accesible as soon as I have restarted Tomcat. For
> instance: if I create the directory 'robinhat' in TOMCAT_HOME/webapps,
> then I can access it at:
>
> http://myserver/robinhat
>
> _without_ touching server.xml. You suggest, that I should edit the
> Context for every web application in server.xml, but I want to avoid
> that.
If your server.xml has the AutoSetup Servlet configured then all directories
under the webapps tree will be given their own context. This should be
the default install. This servlets goes through and finds directories in
the webapps directory which do not already have a context defined for them
and creates one.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com