You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Frederic Collin <fc...@quixiz.com> on 2003/07/31 11:30:54 UTC

Developing my own tomcat valve

Hi , 
 
I would like to develop my own tomcat valve.
 
If I've well understanded, I have to:
 
-         Create a class extending org.apache.catalina.valves.ValveBase
-         Implement its invoke method
-         Add a <valve> entry in the server.xml file
-         Pack my class(es) into a jar file and copy it in the
[CATALINA_HOME]/server/lib directory
 
 
I've made all of these steps, but my valve seems not to be called when a
request arrives to tomcat. Can u tell me what's wrong ?
 
 
Thx !
 
 
Frederic Collin.
 
 

RE: Developing my own tomcat valve

Posted by Frederic Collin <fc...@quixiz.com>.
Hi Nathan,

Do u have a small sample valve that I can test to see if it works ?


Frédéric.


-----Original Message-----
From: Nathan Ward [mailto:nrward@cox.net] 
Sent: jeudi 31 juillet 2003 16:31
To: Tomcat Developers List; fcollin@quixiz.com
Subject: Re: Developing my own tomcat valve

I made a valve and copied to server/classes/... and it works. My valve
allows/denies access based on ServerName. Very similar to the
HostNameValve
and HostAddrValve. I need to submit it to the Tomcat project. I've never
contributed before and haven't looked into how to go about that yet.

   Nathan

----- Original Message -----
From: "Frederic Collin" <fc...@quixiz.com>
To: <to...@jakarta.apache.org>
Sent: Thursday, July 31, 2003 5:30 AM
Subject: Developing my own tomcat valve


> Hi ,
>
> I would like to develop my own tomcat valve.
>
> If I've well understanded, I have to:
>
> -         Create a class extending
org.apache.catalina.valves.ValveBase
> -         Implement its invoke method
> -         Add a <valve> entry in the server.xml file
> -         Pack my class(es) into a jar file and copy it in the
> [CATALINA_HOME]/server/lib directory
>
>
> I've made all of these steps, but my valve seems not to be called when
a
> request arrives to tomcat. Can u tell me what's wrong ?
>
>
> Thx !
>
>
> Frederic Collin.
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Re: Developing my own tomcat valve

Posted by Nathan Ward <nr...@cox.net>.
I made a valve and copied to server/classes/... and it works. My valve
allows/denies access based on ServerName. Very similar to the HostNameValve
and HostAddrValve. I need to submit it to the Tomcat project. I've never
contributed before and haven't looked into how to go about that yet.

   Nathan

----- Original Message -----
From: "Frederic Collin" <fc...@quixiz.com>
To: <to...@jakarta.apache.org>
Sent: Thursday, July 31, 2003 5:30 AM
Subject: Developing my own tomcat valve


> Hi ,
>
> I would like to develop my own tomcat valve.
>
> If I've well understanded, I have to:
>
> -         Create a class extending org.apache.catalina.valves.ValveBase
> -         Implement its invoke method
> -         Add a <valve> entry in the server.xml file
> -         Pack my class(es) into a jar file and copy it in the
> [CATALINA_HOME]/server/lib directory
>
>
> I've made all of these steps, but my valve seems not to be called when a
> request arrives to tomcat. Can u tell me what's wrong ?
>
>
> Thx !
>
>
> Frederic Collin.
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org