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]>

Reply via email to