May 152011
 

Some days ago I produced a deadlock on Tomcat-startup. I deployed a class implementing ServletContextListener that instantiates a WebService clientstub object. The problem was that the endpoint was an WebService deployed on the same Tomcat instance.

Everything works fine till restart of Tomcat. On startup Tomcat locks the connector since all web-applications are deployed. Tomcat accepts incoming connections but waits until deployment of all web-applicationsĀ  is completed. What happens is that the ServletContextListener implementation wants to download the WSDL of the WebService but Tomcat is waiting until all applications are deployed but the deployment-process cannot be completed until the WSDL can be reached.

The consequence is that you shouldn’t access any of the web-applications, in any methods executed on the deployment-phase, deployed on the same tomcat.

Sorry, the comment form is closed at this time.

   
© 2011 Softwareengineering in practise Suffusion theme by Sayontan Sinha