I'd never dug into where velocity's annoying messages were coming from but I decided enough is enough already. These tiresome messages from velocity were showing up on every page load:
2006-02-22 12:08:02 StandardContext[/webapp] Velocity [info] ResourceManager : found /path/to/resource.vm with loader org.apache.velocity.tools.view.servlet.WebappLoaderSuch messages might be good for debugging your setup but once you're up and running, they're just obnoxious. They definitely weren't coming from the
log4j.propertiesin the webapp. So I took a look at velocity's defaults. The logging properties that velocity ships with in
velocity.propertiesconcern display of stacktraces but the constant chatter in Tomcat's logs weren't in there either. So I unwrapped the velocity source and found it in org.apache.velocity.runtime.RuntimeConstants -- all I had to do is add this to
velocity.propertiesand there was peace:
resource.manager.logwhenfound = falseAh, much better!
They shoulda named that property