Aaron Mulder wrote:
Can you post your geronimo-web.xml?  It sounds like maybe some
elements are out of order or have the wrong namespace.  Or, if you
have an XML Schema validation tool or function in your IDE you might
try validating your geronimo-web.xml against the geronimo-tomcat
schema in the schemas/ directory of your Geronimo tree.

I've tried shuffling the resource-ref around... should I be declaring it differently?

Here's my geronimo-web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1";>

    <dep:environment xmlns:dep="geronimo.apache.org/xml/ns/deployment-1.1">
        <dep:moduleId>
                <dep:groupId>webapp</dep:groupId>
            <dep:artifactId>store</dep:artifactId>
            <dep:version>1.0</dep:version>
            <dep:type>war</dep:type>
        </dep:moduleId>
        <dep:dependencies>
            <dep:dependency>
                <dep:groupId>console.dbpool</dep:groupId>
                <dep:artifactId>WebAppDS</dep:artifactId>
            </dep:dependency>
        </dep:dependencies>
    </dep:environment>

    <context-root>/</context-root>

    <resource-ref>
        <ref-name>jdbc/WebAppDS</ref-name>
        <resource-link>WebAppDS</resource-link>
    </resource-ref>

    <cluster>TomcatCluster</cluster>

    <!-- Cluster -->
<gbean name="TomcatCluster" class="org.apache.geronimo.tomcat.cluster.CatalinaClusterGBean"> <attribute name="className">org.apache.catalina.cluster.tcp.SimpleTcpCluster</attribute>
        <attribute name="initParams">

managerClassName=org.apache.catalina.cluster.session.DeltaManager
            expireSessionsOnShutdown=false
            useDirtyFlag=false
            notifyListenersOnReplication=true
        </attribute>

<reference name="Membership"><name>TomcatMembership</name></reference>
        <reference name="Receiver"><name>TomcatReceiver</name></reference>
        <reference name="Sender"><name>TomcatSender</name></reference>
<reference name="TomcatValveChain"><name>ReplicationValve</name></reference>
    </gbean>

    <!-- Membership -->
<gbean name="TomcatMembership" class="org.apache.geronimo.tomcat.cluster.MembershipServiceGBean"> <attribute name="className">org.apache.catalina.cluster.mcast.McastService</attribute>
        <attribute name="initParams">
            mcastAddr=228.0.0.4
            mcastBindAddress=127.0.0.1
            mcastPort=45564
            mcastFrequency=500
            mcastDropTime=3000
        </attribute>
    </gbean>

    <!-- Receiver -->
    <gbean name="TomcatReceiver"
        class="org.apache.geronimo.tomcat.cluster.ReceiverGBean">
<attribute name="className">org.apache.catalina.cluster.tcp.ReplicationListener</attribute>
        <attribute name="initParams">
            tcpListenAddress=127.0.0.1
            tcpListenPort=4001
            tcpSelectorTimeout=100
            tcpThreadCount=6
        </attribute>
    </gbean>

    <!-- Sender -->
    <gbean name="TomcatSender"
        class="org.apache.geronimo.tomcat.cluster.SenderGBean">
<attribute name="className">org.apache.catalina.cluster.tcp.ReplicationTransmitter</attribute>
        <attribute name="initParams">
            replicationMode=pooled
            ackTimeout=15000
        </attribute>
    </gbean>

    <!-- Valves -->
    <gbean name="ReplicationValve"
        class="org.apache.geronimo.tomcat.ValveGBean">
<attribute name="className">org.apache.catalina.cluster.tcp.ReplicationValve</attribute>
        <attribute name="initParams">

filter=.*\.gif;.*\.js;.*\.css;.*\.png;.*\.jpeg;.*\.jpg;.*\.htm;.*\.html;.*\.txt;
        </attribute>
<reference name="NextValve"><name>JvmRouteBinderValve</name></reference>
    </gbean>
    <gbean name="JvmRouteBinderValve"
        class="org.apache.geronimo.tomcat.ValveGBean">
<attribute name="className">org.apache.catalina.cluster.session.JvmRouteBinderValve</attribute>
                <attribute name="initParams">
                        enabled=true
                </attribute>
    </gbean>

</web-app>


Thanks.

-Chris

Reply via email to