You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jean-Luc BEAUDET <be...@toolchest.cyber.kodak.com> on 2001/10/26 17:10:49 UTC

Need help for server.xml

Sorry if this is the second Post...
I made a little mistake !

Hi all,

I'm newbie with the Tomcat env.

Runnin' SOLARIS 8 Apache 1.3.20 and ApacheJServ 1.1.2 i had to decide to

shift to Tomcat 4.0.1 especially for jsp's.

I'm happy with it but i'd like to:

    keep my servlets zones as they were already
    create new ones mostly independant of the $CATALINA_HOME/webapps
and maybe on different boxes.

I could easily create my first Context  by modifying the server.xml
file:
<!-- Cecile Project Context -->
        <Context path="/cecile" docBase="cecile" debug="0"
privileged="true"/>

But i am bind with $CATALINA_HOME/webapps/cecile dir.

I'd like to create smth like /MyOwnDir/Mywebapp/jsp/servlets files.

Any help welcome.

Jean-Luc :Oo)




Re: Need help for server.xml

Posted by Nikola Milutinovic <Ni...@ev.co.yu>.
Jean-Luc BEAUDET wrote:

> Sorry if this is the second Post...
> I made a little mistake !
> 
> Hi all,
> 
> I'm newbie with the Tomcat env.
> 
> Runnin' SOLARIS 8 Apache 1.3.20 and ApacheJServ 1.1.2 i had to decide to
> 
> shift to Tomcat 4.0.1 especially for jsp's.
> 
> I'm happy with it but i'd like to:
> 
>     keep my servlets zones as they were already
>     create new ones mostly independant of the $CATALINA_HOME/webapps
> and maybe on different boxes.
> 
> I could easily create my first Context  by modifying the server.xml
> file:
> <!-- Cecile Project Context -->
>         <Context path="/cecile" docBase="cecile" debug="0"
> privileged="true"/>
> 
> But i am bind with $CATALINA_HOME/webapps/cecile dir.
> 
> I'd like to create smth like /MyOwnDir/Mywebapp/jsp/servlets files.

I have a web server which holds 3 virtual hosts on Apache, so I started playing 
with virtual hosts under Tomcat. I think that is a generally good way of 
separating things - if you need virtual hosts and don't find it an overkill. The 
most important atribute for you is "appBase" of a <Host ...> element, allowing 
you to specify the application base directory for all web applications on that 
virtual host.

If, OTOH, you don't need that, you can setup a <Context docBase="ABSOLUTE_PATH" 
...> and load it that way. Or setup symbolic links in $CATALINA_HOME/webapps.

Nix.


--
To unsubscribe, e-mail:  <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>