I posted a question earlier, but now have some more info.... I have a custom valve that monitors page accesses in tomcat. It works in tomcat 6, and under tomcat 5.5 that comes bundled with jboss. I can not get it to work in tomcat 5.5.25. I put the jar in server/lib and the war I install that reads the monitoring data gets calls def not found errors on the classes in my jar when it tries to display the data. Shouldn't my war be able to see the classes from a jar put into server/lib? I noticed that the management wars were put under server/webapps. Do I need to do something along these lines?
The original message is below. ---------- Forwarded message ---------- From: Steve Souza <[EMAIL PROTECTED]> Date: Sep 9, 2007 10:48 PM Subject: problems with custom valve in tomcat 5.5 To: [EMAIL PROTECTED] I have written a custom valve that should work in tomcat 5.5. and tomcat 6. It does work in tomcat 6 and jboss's tomcat 5.5. The valve monitors http requests with JAMon (http://www.jamonapi.com ). I put the following valve line in server.xml (engine is show to give location context). When I startup tomcat 5.5 (non jboss version) the server flashes something on the screen I can't read and then exits. I remove the valve line and the server boots fine. Does anyone have any ideas? Does it matter where I put my jar in tomcat 5.5? Does it need to be in some classpath? Thanks. <Engine name="Catalina" defaultHost="localhost"> <Valve className="com.jamonapi.http.JAMonTomcatValve"/>