tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kitching Simon <>
Subject RE: Session Info Sharing
Date Fri, 27 Oct 2000 15:15:39 GMT

> -----Original Message-----
> From:	Nicolas Gauthier []
> Sent:	Friday, October 27, 2000 3:38 PM
> To:
> Subject:	Re: Session Info Sharing
> Hi,
> once again I am quite new to Tomcat, I am used to Jrun.
> Originally when I setted up Tomcat, I added this line in the server.xml
> file:
>         <Context path=""
> docBase="/home/user2/ctmipa/serviadm/services_ir/server_root/htdocs"
> debug="0" reloadable="true" >
> Which allows me to have a directory as docbase which is not under the
> tomcat tree.
> Is it a bad thing to do this ?
	[Kitching Simon]  
	No, I don't believe there are any stylistic objections to this...I
do it :-)
	I strongly believe that classes and libs belong inside the webapp,
	not at arbitrary places referenced via CLASSPATH, but can't see 
	any objections to putting whole webapps wherever it is most
	Comments welcome of course...

> In partciculary, now I would to preload a servlet and when I add the lines
> in the web.xml file (thanks to the mailing list archive server), Tomcat
> does not seem to preload the servlet.
> Could the previous setting in cause ?
	[Kitching Simon]  
	I have a docBase outside tomcat, and preload servlets fine.

	in $TOMCAT_HOME/conf/server.xml:
	        <Context path="" docBase="/somepath/docroot" debug="0"
reloadable="false" >

	in /somepath/docroot/WEB-INF/web.xml:

> I would like to check that with you guys that are more experienced with
> Tomcat before to migrate all my directory structure under the Tomcat tree.
> Thanks for any info on that set up,
> Nicolas.

View raw message