File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Servlet 3.0, slow scan for WebApplicationInitializer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet 3.0, slow scan for WebApplicationInitializer" Watch "Servlet 3.0, slow scan for WebApplicationInitializer" New topic
Author

Servlet 3.0, slow scan for WebApplicationInitializer

yuri cherio
Greenhorn

Joined: Sep 01, 2011
Posts: 1
I am trying get rid of web.xml and move to using WebApplicationInitializer.

Everything seems to be working fine except the startup time is now slow. Apparently the application server (tomcat 7 in my case) is searching all JARs in my WEB-INF/lib folder for the classes that implement WebApplicationInitializer. Since I have Spring/Hibernate setup that folder has lots of jars and it takes some time for the application server to find those JARs that have WebApplicationInitializer implementation. I am hoping there might be a way to explicitly point tomcat to the specific JARs and save time on JAR scanning.

Thoughts are greatly appreciated.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Servlet 3.0, slow scan for WebApplicationInitializer
 
Similar Threads
hibernate exception
Error in defining filter in web.xml
problem with performance tomcat
struts 2 setup
Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV