tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoît Jacquemont <benoit.jacquem...@smile.fr>
Subject RE: A Simple question to the configuration of tomcat
Date Thu, 05 Apr 2001 13:09:14 GMT
Hi,

You just have to declare a context like this:
        <Context path="" docBase="/path/to/myapp" debug="0"
reloadable="false" >
        </Context>
in your TOMCAT_HOME/conf/server.xml. You should also remove the ROOT context
and the ROOT directory that is in the webapp directory.
Anyway, in real world, I mean in production environment, you should remove
all the contexts that don't deal with your app, and all the subdirectory
within the /webapp.

Benoît


> Hello,
>
> since several weeks I am testing tomcat as a Servlet Engine with great
> success. I use Win98 SE2 with PWS.
> Now I have a simple problem (I think):
>
> What I have to do (in the configuration files) when I want to start my
> servlets with the URL:
>
> http://localhost/servlet/TestServlet
>
> and not with a WEPAPP-Directory like
> http://localhost/example/servlet/TestServlet
>
> Which settings I have to do in the configuration-files and in which
> directory I have to put my Servlets ?
>
> Thanks a lot for your answer
>
> With best regards
>
> M. Thorand
>
> TOPO graphics
> Geographische Informationssysteme GmbH
>
> EMail:      thorand@topographics.de
>


Mime
View raw message