I actually wrote a short document describing this docroot configuration problem and submitted it to tomcat-dev, but it didn't get any response from the developers. unfortunately, they are all very busy. I'm willing to revise the initial draft I wrote to include this kind of information if one of the developers is willing to sign off/speak up for it. peter lin Jeff Wishnie wrote:I have a very simple Tomcat install with one application. The web.xml for the applicaiton loads two servlets on start-up.
According to my logs both servlets have their init() methods called _twice_. I've looked through the list archives and gone through the mentionned causes of this problem and, assuming I understand the issues, have ruled them out. 1. The servlets are _not_ throwing exceptions 2. I have only _one_ context defined in server.xml and it is _not_ the default context. I'm going nuts here and would be very grateful for any help folks on the list can provide. Here are the details of my set-up: Tomcat: 4.1.7-LE JDK: 1.4.0_01 OS: Redhat 7.2 Tomcat layout: One web application in: $TOMCAT_HOME/ROOT/MyApp Here are revelant sections from $TOMCAT_HOME/conf/server.xml: autoDeploy="false"> directory="logs" prefix="localhost_log." suffix=".txt" timestamp="true"/> reloadable="false" /> [note that "autoDeploy" and "reloadable" are false and that the Context path="/", _not_ ""] Here are relevent sections from $TOMCAT_HOME/ROOT/MyApp/WEB-INF/web,xml: initServlet com.foo.InitServlet 10 serviceInit com.foo.ServiceInitServlet endpoint http://foo.com/service/bar?wsdl 20 Why is Init getting called TWICE for each servlet?? Help! Thanks! - Jeff -- To unsubscribe, e-mail: For additional commands, e-mail: --------------------------------- Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost