geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rik" <...@fundum.net>
Subject RE: Tomcat Valves in Geronimo
Date Sat, 02 Sep 2006 15:41:47 GMT
Hello, 

 

Thanks for your reply. I did have such a reference in
var/catalina/conf/j2ee-server-tomcat-plan.xml, but it does not seem to ever
be loaded, as I don't see any error messages even when this xml contains
nonsense. 

 

When I place these definitions in the var/config/config.xml, the valves
don't seem to be the same thing as in Tomcat:

 

<gbean
name="geronimo/tomcat/1.1/car?ServiceModule=geronimo/tomcat/1.1/car,j2eeType
=GBean,name=TomcatWebContainer">

<attribute name="catalinaHome">var/catalina</attribute>

<reference name="engineGBean"><name>TomcatEngine</name></reference>

</gbean>

 

<gbean name="TomcatEngine" class="org.apache.geronimo.tomcat.EngineGBean">

<attribute
name="className">org.apache.geronimo.tomcat.TomcatEngine</attribute>

<reference name="TomcatValveChain"><name>FirstValve</name></reference>

</gbean>

 

<gbean name="FirstValve">

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

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

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

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

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

</gbean>

 

 

Module  9/22 geronimo/tomcat/1.1/car                 17:37:43,043 ERROR
[GBeanInstanceState] Error while starting; GBean is now in the FAILED state:
abstractName="geronimo/tomcat/1.1/car?configurationName=geronimo/tomcat/1.1/
car"

org.apache.geronimo.kernel.config.InvalidConfigException: No attribute:
driverName for gbean:
geronimo/tomcat/1.1/car?ServiceModule=geronimo/tomcat/1.1/car,j2eeType=Tomca
tValve,name=FirstValve

 

 

 

  _____  

From: Vamsavardhana Reddy [mailto:c1vamsi1c@gmail.com] 
Sent: Saturday, September 02, 2006 10:07 AM
To: user@geronimo.apache.org
Subject: Re: Tomcat Valves in Geronimo

 

Hello,

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">
                <name>SecondValve</name>
        </reference>
      </gbean>
    </module>

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

Thanks,
Vamsi

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>

</gbean>

 

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

 

Thanks, 

 

Rik

 


Mime
View raw message