wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Tomcat init ValidatorPlugin and TilesPlugin twice -- why? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat init ValidatorPlugin and TilesPlugin twice -- why?" Watch "Tomcat init ValidatorPlugin and TilesPlugin twice -- why?" New topic
Author

Tomcat init ValidatorPlugin and TilesPlugin twice -- why?

Darien Cheung
Ranch Hand

Joined: Aug 13, 2004
Posts: 36
I'm running Tomcat 5.5 and have 1 struts application deployed under the WEBAPPS directory. Everytime I start up Tomcat in Windows XP, I see the TilesPlugin and ValidatorPlugin init messages twice. It makes startup a little slower but I'm wondering why is it doing that? Here is the startup messages:



Any help is appreciated! Thanks
Mathias Nilsson
Ranch Hand

Joined: Aug 21, 2004
Posts: 367
There not loading the same XML.


5-Jun-2007 12:21:00 PM org.apache.struts.validator.ValidatorPlugIn initResourcesINFO: Loading validation rules file from '/WEB-INF/config/validator-rules.xml'5-Jun-2007 12:21:00 PM org.apache.struts.validator.ValidatorPlugIn initResourcesINFO: Loading validation rules file from '/WEB-INF/config/validation.xml'


one is the try for validator-rules.xml and the other validator.xml


SCJP1.4
Darien Cheung
Ranch Hand

Joined: Aug 13, 2004
Posts: 36
Yes, that's correct, but then immediately it seems to load those 2 again.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

It could be that your application has been deployed twice.
Use the tomcat manager app to see if it appears in the list more than once.

This, most commonly, occurs when people explicitly declare their web app in server.xml or with a context fragment file but also place the webapp's directory structure (or war file) under the tomcat/webapps directory.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat init ValidatorPlugin and TilesPlugin twice -- why?
 
Similar Threads
SEVERE: Error initializing endpoint
Tomcat6.0 startup!! IllegalArgumentException
init()
Filters and web.xml problem + Eclipse
How to user Struts Tags in a WebApplication