You need to connect this SecondValve to the FirstValve using a reference named "NextValve" in the FirstValve.  The xml you need to add will look like the following:

    <module name="geronimo/tomcat/1.1/car">
    <gbean name="FirstValve">
       <reference name="NextValve">

Some of the string literals may be different depending on the version of G you are using etc.


On 9/2/06, Rik <rik@fundum.net> wrote:

Hello All,


I'm trying to find the documentation on how to configure Tomcat for use with Geronimo. Specifically, I would like to be able to use the valves, specifically JDBCAccessLogValve.


I tried to follow the directions in the documentation, and added the following to var/catalina/conf/j2ee-server-tomcat-plan.xml :


<gbean name="SecondValve" class="org.apache.geronimo.tomcat.ValveGBean">

    <attribute name="className">org.apache.catalina.valves.JDBCAccessLogValve</attribute>

    <attribute name="driverName">org.postgresql.Driver</attribute>

    <attribute name="connectionURL">jdbc:postgresql://chef:5432/system</attribute>

    <attribute name="connectionName">rik</attribute>

    <attribute name="connectionPassword">hello</attribute>

    <attribute name="pattern">combined</attribute>

    <attribute name="resolveHosts">false</attribute>



But nothing happens, not even an error message, which suggests to me that it never gets loaded. Can someone give me any hints?