Hi, 4.0.3 had at least two related bugs: Servlet init() methods were being called twice, and the HttpSessionListener had some events fire twice. Tomcat 4.0.4 fixed those bugs (see the release notes for it). I recommend you try 4.0.4.
Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: peter lin [mailto:[EMAIL PROTECTED]] >Sent: Monday, July 22, 2002 9:46 AM >To: Tomcat Users List >Subject: Re: webapp > > >yeah, it does seem weird to me too. I must be doing something wrong, >but here's more details. my default directory in serverl.xml is to >"myapp". In myapp/WEB-INF/web.xml I have the following entries. > > <display-name>thisapp</display-name> > <listener> > <listener-class>test.ApplicationListener</listener-class> > </listener> > >when I start tomcat 4.0.3, I see it print out the name "thisapp" twice. >the test listener creates a dummy object and prints out using >system.out.print("cxt init called"); > >peter > > > >"Shapira, Yoav" wrote: >> >> Howdy, >> >> >was worded a bit awkward. Basically I will have multple webapps running >> >in Tomcat. I want to make sure that each webapp loads it's particular >> >application. >> >> That's interesting. We've been using tomcat 4.0.1 with multiple webapps >> installed. Each has its own context listener, and each only gets the >> contextInitialized (and for that matter, the contextDestroyed which we >> care about more) only once. So I was fairly confident this part of >> tomcat works well, at least in 4.0.1. I've also tested it in 4.0.4 and >> 4.1.7 beta, but only with one of my webapps on the server. >> >> I wonder what's different in our configurations that could cause this >> behavioral difference... >> >> Yoav Shapira >> Millennium ChemInformatics >> >> -- >> To unsubscribe, e-mail: <mailto:tomcat-user- >[EMAIL PROTECTED]> >> For additional commands, e-mail: <mailto:tomcat-user- >[EMAIL PROTECTED]> > >-- >To unsubscribe, e-mail: <mailto:tomcat-user- >[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:tomcat-user- >[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
