Hi,
since upgrading from Spring 3.0.6.RELEASE to 3.1.0.RELEASE the startup time of our application has multiplied by 3 or 4 (local, with Tomcat 7). Is anybody else experiencing this?
I suspect the new SpringServletContainerInitializer, because after it hangs for a long time, the output says: INFO: No Spring WebApplicationInitializer types detected on classpath.
Is there a way to disable the scanning?
Best, Thomas.


Reply With Quote
. It is something specified in the servlet 3.0 spec. As I stated it tells the container (in this case Tomcat 7) to not scan for classes implementing ServletContainerInitializer (which is something new in the servlet 3.0 spec it allows you to write a web app without providing a web.xml and use a class implementing that interface to register your servlets etc. Spring provides a wrapper with the SpringServletContainerInitializer which in turn scans for the WebApplicationInitializer interface. So basically your full class path is now scanned twice which in case of a large class path can be killing for your startup time).

