change the appbase for your host in server.xml to be something other than webapps. This will stop the autoloading of contexts. therefore it will only load the contexts that you have explicitly defined.
Charlie > -----Original Message----- > From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 23, 2002 4:51 PM > To: Tomcat Users List > Subject: Re: Resend (again): 4.0.3: Servlets Loaded Twice? > > > In reference to servlets loading twice or init() being called twice... > > Craig R. McClanahan [[EMAIL PROTECTED]] wrote: > // > If you are getting servlets loaded twice, your configuration > is messed up. > The most likely way to cause this to happen is to have a > directory under > webapps (so that it gets automatically deployed) plus a > <Context> element > in server.xml that points at the same directory, but with > another context > path. What happens here is that you're initializing two > webapps from the > same directory -- and the initialization happens for each of them. > // > > This turns out to be my problem. I define the context in > server.xml and all > I have in my webapps web.xml file is a servlet mapping and an > init-param. > I've been looking in the archives for this mailing list, but > I haven't found > a solution to this problem. Actually, I find *several* > references to an > e-mail that addresses this problem, yet as far as I can tell > they refer to: > http://mikal.org/interests/java/tomcat/archive/view?mesg=54195 > > However, this does not tell me steps I need to take to > correct the problem. > Thanks for helping to identify the cause of the problem, but > any advice on > the steps to solve it? A config change in web.xml? If the > answer is in the > archives, how about the search words I need to use to find it > (or maybe a > link)? > > Thanks! > > Jeff > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
