This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Tomcat and the fly likes Problems with Custom valve for Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problems with Custom valve for Tomcat" Watch "Problems with Custom valve for Tomcat" New topic
Author

Problems with Custom valve for Tomcat

Richard Olson
Greenhorn

Joined: Mar 15, 2004
Posts: 15
Hi,

I'm attempting to use the example, RequestDumperFilter class from Tomcat 5.00.28 to create my own custom valve. I've defined the class within server.xml as follows:
<Valve className="com.myFilters.valves.RequestDumperFilter"/> The class file resides in Windows XP directory named CATALINA_HOME\server\claases\com\myFilters\valves.

Tomcat fails to start when the line's uncommented complaining the server cannot locate the class file. The real question, am I installing the calls in the correct directory? I searched for a reference on Tomcat website, but failed to find any. The book, Mastering Tomcat Dev mentions placing the file in the server/classes directory.

Thanks,
Rich
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problems with Custom valve for Tomcat