Klaas van der Ploeg wrote:
> 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).
Thanks, I'll have a look at war-files.
> 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?
Yes, this is the mechanism I _need_. What I _want_ is to add something to the
URL, I use to access my webapps. After you made your 'bla'-directory, you could
access it at:
http://yourtomcatserver/bla
I want the URL to be
http://yourtomcatserver/java/bla
even though you haven't made a 'java'-directory. I want to to make some sort of
global configuration change, so that all my "Tomcat URLS" start with
http://mytomcatserver/java/[webapp]
instead of just.
http://mytomcatserver/[webapp]
Am I talking clearer now? :-)
Regards,
Lars
>
>
> 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
> >