Can anyone advise - what would cause a listener's contextInitialized() to be called exactly twice during the deployment of a webapp?


I am using Tomcat included in the Java Web Services Developer Pack v1.3. The double call of contextInitialized() happens for both my servlets, and the example servlets that have listeners defined.

The only hint I have at the moment is that when incrementing one static and one instance counter within the listener, on both calls both variables are 1 (from 0), so could two different classloaders or VMs be instantiating the ContextListener, and what would cause that?

I don't have any virtual hosts defined.

Thanks

Brett Randall

_________________________________________________________________
Protect your inbox from harmful viruses with new ninemsn Premium. Go to http://ninemsn.com.au/premium/landing.asp?banner=emailtag&referrer=hotmail



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to