Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 51324 invoked from network); 2 Mar 2007 06:28:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Mar 2007 06:28:39 -0000 Received: (qmail 53969 invoked by uid 500); 2 Mar 2007 06:28:41 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 53940 invoked by uid 500); 2 Mar 2007 06:28:41 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 53926 invoked by uid 99); 2 Mar 2007 06:28:41 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2007 22:28:41 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [64.18.1.208] (HELO exprod6og56.obsmtp.com) (64.18.1.208) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 01 Mar 2007 22:28:29 -0800 Received: from source ([66.46.195.131]) by exprod6ob56.postini.com ([64.18.5.12]) with SMTP; Thu, 01 Mar 2007 22:28:07 PST In-Reply-To: Subject: Re: Adding Tomcat Valve specific web apps To: user@geronimo.apache.org X-Mailer: Lotus Notes Release 7.0 August 18, 2005 Message-ID: From: Aman Nanner/MxI Technologies Date: Fri, 2 Mar 2007 01:27:42 -0500 X-MIMETrack: Serialize by Router on Oceanus/MxI Technologies(Release 7.0|August 18, 2005) at 03/02/2007 01:28:08 AM MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org Ok, I figured out how to get this to work! I leave my existing Tomcat Valves that are defined in my config.xml as is. I then add the web-app specific Tomcat Valve as a GBean in my geronimo-web.xml, and reference that GBean from the element. So my original valves are defined in config.xml as follows: --- org.apache.catalina.valves.AccessLogValve prefix=0.0.0.0_access_log. suffix=.txt pattern=common SecondValve org.apache.catalina.authenticator.SingleSignOn --- My web-app specific Tomcat Valve is then defined in the geronimo-web.xml for my web-app like this: --- BasicAuthValve MaintenixRealm org.apache.catalina.authenticator.BasicAuthenticator disableProxyCaching=false --- Aman Nanner/MxI Technologies user@geronimo.apache.org cc 02-27-2007 01:50 PM Subject Re: Adding Tomcat Valve specific web apps Please respond to user@geronimo.apa che.org Is the element supposed to refer to a GBean valve name? I've tried this but I'm getting deployment errors. I have defined the following valve chain in my config.xml ---- org.apache.catalina.valves.AccessLogValve prefix=0.0.0.0_access_log. suffix=.txt pattern=common SecondValve org.apache.catalina.authenticator.SingleSignOn org.apache.catalina.authenticator.BasicAuthenticator disableProxyCaching=false FirstValve ---- The config.xml defines a default valve chain consisting of "FirstValve" and "SecondValve". Now, in certain specific web apps, I want to define the element in the geronimo.web.xml so that I can extend this valve chain with another valve, but just for the specific web app. In the geronimo-web.xml, I will add the following element: ---- BasicAuthValve ---- I'm hoping that this "pre-appends" the BasicAuthValve valve to the valve chain, since the BasicAuthValve has the "FirstValve" as a GBean reference. As I stated before, I'm getting a deployment error when this occurs: ---- [java] The service [java] J2EEApplication=Mxi/Maintenix/1/ear,j2eeType=WebModule,name=induction.war [java] did not start because [java] Mxi/Maintenix/1/ear?J2EEApplication=Mxi/Maintenix/1/ear,WebModule=induction.war,j2eeType=TomcatValve,name=BasicAuthValve [java] did not start. ---- It seems that the deployer is trying look for the BasicAuthValve GBean in the web app itself. Anybody have any ideas on how I can get this working? Thanks, Aman Aman Nanner/MxI Technologies wrote on 02-21-2007 04:58:27 PM: > > Hello, > > I'm deploying an application EAR file on Geronimo 1.2-beta. This EAR > contains several web applications. When we deploy this application in > JBoss, we have a META-INF/context.xml file in each web app that lets us > specify Tomcat valves that only apply to that web app in particular. We > would like to do the same thing with Tomcat in Geronimo. > > Upon examining the geronimo-tomcat-1.1.xsd descriptor (which is the schema > we are using for the geronimo-web.xml), I noticed that there is a > element. This would appear to be the element that > would offer the functionality that we are looking for. However, it is only > defined as a "string" type, and I'm not sure how I'm supposed to specify > the valve(s) in here. Also, do these valves get used in addition to the > valves that are specified in config.xml? If anybody has any knowledge in > this area, please let me know. > > Thanks, > Aman > > __________________________________________________________________________________ > * This message is intended only for the use of the individual or > entity to which it is addressed, and may contain information that is > privileged, confidential and exempt from disclosure under applicable > law. Unless you are the addressee (or authorized to receive for the > addressee), you may not use, copy or disclose the message or any > information contained in the message. If you have received this > message in error, please advise the sender by reply e-mail , and > delete the message, or call (collect) 001 613 747 4698. * > __________________________________________________________________________________ * This message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. Unless you are the addressee (or authorized to receive for the addressee), you may not use, copy or disclose the message or any information contained in the message. If you have received this message in error, please advise the sender by reply e-mail , and delete the message, or call (collect) 001 613 747 4698. * __________________________________________________________________________________ * This message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. Unless you are the addressee (or authorized to receive for the addressee), you may not use, copy or disclose the message or any information contained in the message. If you have received this message in error, please advise the sender by reply e-mail , and delete the message, or call (collect) 001 613 747 4698. *