DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4299>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4299 Servlet loaded twice with load-on-startup [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |INVALID ------- Additional Comments From [EMAIL PROTECTED] 2001-10-19 15:15 ------- All you need to do is understand how it works, and configure accordingly. * ALL directories in "webapps" are auto-deployed * All directories anywhere *other* than webapps are not auto-deployed. * If you put a directory in webpps *and* create a <Context> for it (with a different context path) then you are going to get the results you described, because you just asked for two webapps instead of one. The obvious answer is "don't do that." If you want your webapp to be in webapps, AND you want to have it declared in the server.xml file (perhaps so you can customize the parameters), then it is your responsibility to make sure the "path" attribute (minus the initial slash) matches the directory name. Otherwise, Tomcat assumes that you know what you are doing, and creates two webapps for you instead of one. Most people make one and only one choice from the following alternatives: * Put the webapp under "webapps" and do not declare it in server.xml * Put the webapp someplace else and declare it in server.xml (with a "docBase" pointing at the absolute path to the directory or WAR file). I suggest you do one of these, and you will achieve the results you are after.