Project: Tomcat
Bug 53301 Servlet init method called twice with embedded Tomcat
Reported: 2012-05-26 21:36:56 | Status: resolved fixed

When using embedded Tomcat, the servlet init method is called twice by the container. This has been seen with an Apache DirectMemory unit test. I have checked with a normal Tomcat launched by the Tomcat Maven plugin (mvn tomcat7:run) and in this case, the init method is correctly called once.

Files changed in fix:
java/org/apache/catalina/startup/Tomcat.java test/org/apache/catalina/startup/TestTomcat.java