Child pages
  • I'm trying to run the example in the tutorial on Tomcat, and it can't instantiate the VelocityEngine
Skip to end of metadata
Go to start of metadata

Tomcat Says


(Thanks to Keith Lea!)

It turns out Velocity's Avalon logging system was trying to write to my Tomcat folder.

So that it's on file somewhere for other people, I will describe the solution:

  • I created a file "" and placed it in my WEB-INF/classes folder.
  • Inside the file I wrote:

This stops Velocity from logging, and the example application now works.

  • No labels

1 Comment

  1. More details on Velocity logging in general are available in the Velocity documentation here:

    Although, the particular solution outlined above looks like it was probably gleaned from the JavaDocs...