Lars,

Why don't you use .war files? They can be deployed in the webapps directory,
and will be extracted as Tomcat starts. You can find out how this works with
Ant in the docs ($TOMCAT_HOME\doc\appdev\index.html).

BTW: didn't you try to add a new directory to webapps/ ?? I added "bla" as
directory, and Tomcat adds "bla" as context:"ContextManager: Adding context
Ctx( /bla )". Is that what you want, or am I wrong?

Rgrds,
Klaas

> -----Original Message-----
> From: Lars Høyrup Jensen [mailto:[EMAIL PROTECTED]]
> Sent: maandag 6 augustus 2001 13:04
> To: [EMAIL PROTECTED]
> Subject: Re: How do you change the "base URL" for your servlets in
> Tomcat?
> 
> 
> 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.
> 
> I hope, I make my self understandable;-)
> 
> Best regards,
> Lars Høyrup Jensen
> 

Reply via email to