In server.xml, <ContextInterceptor className="...AutoSetup"> will automatically add subdirectories of TOMCAT_HOME/webapps as contexts, using the subdirectory name as the context name. Context declarations in server.xml can override the settings for the auto-added contexts. If you don't want a web application automatically served, move it outside of the TOMCAT_HOME/webapps or remove the interceptor so no contexts are automatically served.
Cheers, Larry > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 25, 2002 6:06 AM > To: [EMAIL PROTECTED] > Subject: multiple Tomcat-instances and a confused servlet... > > > Hi, > > I'm using multiple instances of Tomcat 3.2.4. The problem is, > that I can > access servlets of one instance even if the servlets is in the > webapps-directory of another instance. This is very confusing > during the > development of the servlet, because it still "lives" in the > other instances > although I shut down the right instance. > > The "main" instance of Tomcat lsitens on Port 8087: > http://www.mydomain.com:8087/Community/Poll > The servlet "Poll" ist configured to run this instance: > server.xml: > <Context path="/Community" > docBase="webapps/Community" > crossContext="false" > debug="0" > reloadable="true" > > </Context> > > web.xml: > <servlet-mapping> > <servlet-name> > Poll > </servlet-name> > <url-pattern> > /Poll > </url-pattern> > </servlet-mapping> > > and it is loaded correct during the startup of this TC-instance: > tomcat.log: > 2002-04-25 11:25:04 - Ctx( /Community ): Mapping with > unregistered servlet > Poll > > start-script of this instance: > TOMCATLOG=/usr/local/jakarta-tomcat-3.2.4/logs/tomcat_start.log > TOMCATLOG2=/usr/local/jakarta-tomcat-3.2.4/logs/tomcat_err.log > export JAVA_HOME=/usr/local/jdk1.3.1_02 > export TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.4 > cd $TOMCAT_HOME > /usr/local/jakarta-tomcat-3.2.4/bin/startup.sh -f > /usr/local/jakarta-tomcat-3.2.4/conf/server.xml >$TOMCATLOG > 2>$TOMCATLOG2 > > so far, so good. > > BUT: > I can access this servlet with an other TC-instance, which > listens on Port > 9015: http://www.mydomain.com:9015/Community/Poll > > in this instance, there is NO entry in server.xml which points on the > servlet "Poll". Even the directory "webapps/Community" does > not exist in > this instance! > ...and it is loaded during the startup :(( > 2002-04-25 11:24:16 - Ctx( /Community ): Mapping with > unregistered servlet > Poll > > start-script of this instance, which uses the same binaries > but an other > server.xml: > TOMCATLOG=/usr/local/tc-324-i2125/logs/i2125tomcat_start.log > TOMCATLOG2=/usr/local/tc-324-i2125/logs/i2125tomcat_err.log > export JAVA_HOME=/usr/local/jdk1.3.1_02 > export TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.4 > /usr/local/jakarta-tomcat-3.2.4/bin/startup.sh -f > /usr/local/tc-324-i2125/conf/server.xml >$TOMCATLOG 2>$TOMCATLOG2 > > Any ideas how I can stop this behaviour ? > > Many thanks ! > Kay > > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>