geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul McMahan <>
Subject Re: Problem with defining custom Valve in config.xml
Date Fri, 21 Sep 2007 12:54:14 GMT
1.) start geronimo 2.0.1

2.) undeploy the Tomcat component:
      $G/bin/ undeploy org.apache.geronimo.configs/ 

3.) install your jar into the repository:
      mkdir -p $G/repository/mygroup/myvalve/1.0/
      cp myvalve-1.0.jar $G/repository/mygroup/myvalve/1.0/

4.) get a deployment plan for Geronimo's Tomcat component by building  
it from source
     -- or --

5.) add a dependency on your jar to the deployment plan

6.) redeploy the tomcat component using the updated deployment plan
      $G/bin/ deploy $G/repository/org/apache/geronimo/ 

7.) restart any web apps that depend on Tomcat (undeploying Tomcat  
stopped them).  e.g.
      $G/bin/ start org.apache.geronimo.configs/welcome- 

As was mentioned earlier,  this process for adding new dependencies  
to an existing module needs to be improved in Geronimo.  This would  
make it easier to use your own classes for Tomcat valves.   BTW,  
there are several "native" valves already in the Tomcat jars that  
would not require you to go through this process: 

Best wishes,

On Sep 20, 2007, at 2:34 PM, Carver wrote:

> Thanks Paul! I like this approach, but I don't know how to redeploy  
> it. Could
> you tell me how to redeploy the tomcat module?
> Paul McMahan-2 wrote:
>> Geronimo's Tomcat component actually creates the valve and therefore
>> needs to have the implementation classes available in its
>> classloader.  A component's deployment plan specifies what goes in
>> its classloader, so you could add your jar(s) to Tomcat's deployment
>> plan and then redeploy it.
>> Best wishes,
>> Paul
>> On Sep 20, 2007, at 8:52 AM, Carver wrote:
>>> It seems that I can merge all the other jar files into the
>>> geronimo-tomcat-1.1.1.jar to make it works. Is there other ways to
>>> handle
>>> it?
>>> -- 
>>> View this message in context:
>>> defining-custom-Valve-in-config.xml-tf4486628s134.html#a12796470
>>> Sent from the Apache Geronimo - Users mailing list archive at
> -- 
> View this message in context: 
> defining-custom-Valve-in-config.xml-tf4486628s134.html#a12803085
> Sent from the Apache Geronimo - Users mailing list archive at  

View raw message