I'm trying to create a Valve to gather some information of every server req.
I'm following this example: http://goo.gl/9wwylq
I followed these steps:
- Create a Maven Java Application. Add the tomcat-catalina dependency
- Create your Java class and extend it from ValveBase.
- Implement invoke(Request request, Response response)
- Build your library (.jar) file
- Install the library in the ${tomcat.home}/lib directory.
Configure server.xml to use your new Valve. For example:
valve className="com.bluelotussoftware.tomcat.ProcessingValve"
I tried to put that in the host Tag and in the engine one.. but nothing seems to work, I can't get nor any loggin nor a stop in the debug mode..
anything you guys think i could be missing?