Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: How do I develop a Valve?

Bill Barker

2007-07-09

Replies:


"Joseph S" <jks@(protected)
news:4692D537.7010409@(protected)...
> 1) What jar files do I need to include in my classpath to compile a Valve?

I'm assuming that this is for 5.5. Usually you just need catalina.jar, but
in some cases you might need tomcat-utils.jar and tomcat-coyote.jar (if you
want to interact with the Connector).

> 2) Where do I put the class file so Tomcat can load it? Under
> CATALINA_BASE/common?

You put it under CATALINA_HOME/server/classes, or CATALINA_HOME/server/lib
(if it is in a .jar file, which is recommended, if only so you have the
class and the mbeans-descriptors.xml file in the same place).
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
>




---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.