Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 31017 invoked from network); 6 May 2005 21:14:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 May 2005 21:14:45 -0000 Received: (qmail 84671 invoked by uid 500); 6 May 2005 21:17:32 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 84647 invoked by uid 500); 6 May 2005 21:17:32 -0000 Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org Delivered-To: mailing list scm@geronimo.apache.org Received: (qmail 84629 invoked by uid 99); 6 May 2005 21:17:31 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 06 May 2005 14:17:31 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 3434E19F for ; Fri, 6 May 2005 23:14:40 +0200 (CEST) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: scm@geronimo.apache.org Date: Fri, 06 May 2005 21:14:39 -0000 Message-ID: <20050506211439.4278.49584@ajax.apache.org> Subject: [Geronimo Wiki] Update of "Tomcat" by jgenender X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Dear Wiki user, You have subscribed to a wiki page or wiki category on "Geronimo Wiki" for change notification. The following page has been changed by jgenender: http://wiki.apache.org/geronimo/Tomcat ------------------------------------------------------------------------------ = The geronimo-tomcat.xml = - The geronimo-tomcat.xml file is the equivalent of the Tomcat context.xml file. It allows you to configure specific configurations on a web application by web application basis. It is in this file you will be able to describe the context-root, attach application specific valves and realms, and declare your security mapping. + The geronimo-tomcat.xml file is the equivalent of the Tomcat context.xml file. It allows you to configure specific set-up parameters on a web application by web application basis. It is in this file you will be able to describe the context-root, attach application specific valves and realms, and declare your security mapping. The Geronimo deployer can deploy with this file internally to the web application, or externally. For the sake of this section, we will concentrate on an internal configuration. The geronimo-tomcat.xml is very similar to the geronimo-jetty.xml with a couple of minor enhancements, and this file will normally reside in your war file's WEB-INF directory. - TODO: Explain the geronimo-tomcat.xml + The geronimo-tomcat.xml allows you to configure specific attributes regarding your specifc web application. You may set the context-root, class loader priority, the Tomcat Realm object, the tomcat-valve-chain, security role mappings, resource naming references, and configure Gbeans. + + The following is an example geronimo-tomcat.xml file: + {{{ + + + /test + false + www.myexamplehost.com + TomcatJACCRealm + FirstValve + + Geronimo + + + + + + + + org.apache.geronimo.tomcat.realm.TomcatGeronimoRealm + + userClassNames=org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal + roleClassNames=org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal + + + + + org.apache.catalina.authenticator.SingleSignOn + J2EEModuleSecondValve + + + + org.apache.catalina.valves.AccessLogValve + + prefix=localhost_access_log. + suffix=.txt + pattern=common + + + + }}} + + In this particular file, we have configured a web application that responds to a URL context of /test and only for the virtual host www.myexamplehost.com. It has set up a simple security mapping that uses the tomcat-properties-realm (which is declared in the included j2ee-server-tomcat-plan.xml that came with the Geronimo source). Declaring this security configuration also assumes we will be using JACC, so we have created the TomcatGeronimoRealm Gbean and added the reference to the {{{}}} parameter. We are also using some valves that are specific to this context, so we have created the {{{FirstValve}}} and {{{SecondValve}}} Gbeans as a chain, and set set the {{{}}} to the fir first valve in the chain ({{{FirstValve}}}). + + TODO: Explain more on the parameters here... = Status =