Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 23665 invoked from network); 24 Sep 2006 19:02:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Sep 2006 19:02:12 -0000 Received: (qmail 55909 invoked by uid 500); 24 Sep 2006 19:02:09 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 55890 invoked by uid 500); 24 Sep 2006 19:02:09 -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 55879 invoked by uid 99); 24 Sep 2006 19:02:09 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Sep 2006 12:02:09 -0700 Authentication-Results: idunn.apache.osuosl.org header.from=david_jencks@yahoo.com; domainkeys=good Authentication-Results: idunn.apache.osuosl.org smtp.mail=david_jencks@yahoo.com; spf=permerror X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS Received-SPF: error (idunn.apache.osuosl.org: domain yahoo.com from 68.142.206.241 cause and error) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from [68.142.206.241] ([68.142.206.241:38871] helo=smtp108.plus.mail.mud.yahoo.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 48/02-11238-E26D6154 for ; Sun, 24 Sep 2006 12:02:08 -0700 Received: (qmail 83715 invoked from network); 24 Sep 2006 19:02:03 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=U5K8DpOGvqyCM9Se3vlBN2WVb2WYq99KUgcxe646zXgVQRI5doc3o08D/FFoxtWhGnI2fJ5OOE1TaBPwMXBGJZFJu60bj2lACV4euQYpQO7oyi65yjKW5ZTBWXtnmqlEalfIyoXK2IItyPikw8lfUy6gK8385D9Z2zwoRaJNIQM= ; Received: from unknown (HELO ?10.11.55.38?) (david?jencks@63.105.20.225 with plain) by smtp108.plus.mail.mud.yahoo.com with SMTP; 24 Sep 2006 19:02:03 -0000 Mime-Version: 1.0 (Apple Message framework v749.3) In-Reply-To: <000901c6dfb9$dd6e8770$0a00000a@cartman> References: <000901c6dfb9$dd6e8770$0a00000a@cartman> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <22140297-6EBD-4402-A0C9-1756ABD61180@yahoo.com> Content-Transfer-Encoding: 7bit From: David Jencks Subject: Re: Tomcat Valves in Geronimo Date: Sun, 24 Sep 2006 12:02:03 -0700 To: user@geronimo.apache.org X-Mailer: Apple Mail (2.749.3) X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I _strongly_ recommend you start with the recently released 1.1.1. I think there's a bug in 1.0 that is obscuring a useful error message.... Anyway, there's at least one error I can see in your config.xml modification: specifying the class attribute doesn't work, you need to specify the gbeanInfo attribute. It's not at all clear to me why you are replacing the tomcat engine. I think that in order to get anything except your valves hooked up to a new tomcat engine you would also have to modify or replace the connectors. In any case, at least in 1.1.1, the first valve you want is already hooked up to the existing tomcat engine. I think all you need to do is add a gbean config for the second valve and a reference from the first valve to the second valve. I think it would look like this: prefix=apenootjes suffix=.txt pattern=common SecondValve org.apache.catalina.valves.RemoteAddrValve allow=127.0.0.1,10.0.0.* deny=* ${PlanServerHostname} ${PlanHTTPPortPrimary} ${PlanHTTPSPortPrimary} ${PlanServerHostname} ${PlanAJPPortPrimary} ${PlanHTTPSPortPrimary} ${PlanServerHostname} ${PlanHTTPSPortPrimary} If you can get it to work, would you consider writing up something and putting it on the wiki near http://cwiki.apache.org/GMOxDOC11/apache-geronimo-v11-users-guide.html ? Many thanks david jencks On Sep 24, 2006, at 2:14 AM, Rik wrote: > Hello, > > Thanks for the responses, > > I've tried geronimo 1.0 as included in SuSE 10.1 and Geronimo 1.1 from > geronimo.apache.org. > In version 1.0, I added the following lines to config.xml: > > > > > > 0.0.0.0 > 8080 > 8443 > > > 0.0.0.0 > 8009 > 8443 > > > 0.0.0.0 > 8443 > > name="geronimo.server:J2EEApplication=null,J2EEModule=geronimo/ > tomcat/1.0/ca > r,J2EEServer=geronimo,j2eeType=GBean,name=TomcatWebContainer"> > var/catalina > > > tomcat_engine > > > > > > name="geronimo/tomcat/1.1/car?ServiceModule=geronimo/tomcat/1.1/ > car,j2eeType > =GBean,name=tomcat_engine"> > name="className">org.apache.geronimo.tomcat.TomcatEngine > > > TomcatEngine > > > > FirstValve > > > > class="org.apache.geronimo.tomcat.ValveGBean"> > name="className">org.apache.catalina.valves.AccessLogValve > > prefix=apenootjes > suffix=.txt > pattern=common > > > SecondValve > > > > class="org.apache.geronimo.tomcat.ValveGBean"> > name="className">org.apache.catalina.valves.RemoteAddrValve attribute> > > allow=127.0.0.1,10.0.0.* > deny=* > > > > > > > Booting Geronimo Kernel (in Java 1.4.2_11)... > 10:42:39,551 ERROR [GBeanInstanceState] Error while starting; GBean > is now > in the FAILED state: > objectName="geronimo.server:J2EEApplication=null,J2EEModule=geronimo/j > 2ee-sy > stem/1.0/ > car,J2EEServer=geronimo,j2eeType=AttributeStore,name=AttributeManag > er" > java.lang.NullPointerException > at > org.apache.geronimo.system.configuration.GBeanOverride. > (GBeanOverride. > java:128) > at > org.apache.geronimo.system.configuration.ConfigurationOverride.( > Config > urationOverride.java:51) > at > org.apache.geronimo.system.configuration.ServerOverride. > (ServerOverrid > e.java:41) > at > org.apache.geronimo.system.configuration.LocalAttributeManager.load > (LocalAtt > ributeManager.java:323) > at > org.apache.geronimo.system.configuration.LocalAttributeManager.doStart > (Local > AttributeManager.java:419) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance > (GBeanInstance > .java:936) > at > org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart( > GBeanI > nstanceState.java:325) > at > org.apache.geronimo.gbean.runtime.GBeanInstanceState.start > (GBeanInstanceStat > e.java:110) > at > org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive > (GBeanIns > tanceState.java:132) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive > (GBeanInstance > .java:537) > at > org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean > (BasicKernel > .java:208) > at > org.apache.geronimo.kernel.config.Configuration.startRecursiveGBeans > (Configu > ration.java:315) > at > org.apache.geronimo.kernel.config.Configuration$$FastClassByCGLIB$ > $7f4b4a9b. > invoke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at > org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke > (FastMethodInvoker > .java:38) > at > org.apache.geronimo.gbean.runtime.GBeanOperation.invoke > (GBeanOperation.java: > 118) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke > (GBeanInstance.java:83 > 5) > at > org.apache.geronimo.kernel.basic.BasicKernel.invoke > (BasicKernel.java:178) > at > org.apache.geronimo.kernel.basic.BasicKernel.invoke > (BasicKernel.java:173) > at org.apache.geronimo.system.main.Daemon.doStartup > (Daemon.java:286) > at org.apache.geronimo.system.main.Daemon. > (Daemon.java:82) > at org.apache.geronimo.system.main.Daemon.main(Daemon.java: > 404) > Server Startup failed > > > ________________________________ > > From: David Jencks [mailto:david_jencks@yahoo.com] > Sent: Sunday, September 24, 2006 12:37 AM > To: user@geronimo.apache.org > Subject: Re: Tomcat Valves in Geronimo > > > > On Sep 23, 2006, at 3:05 PM, Rik wrote: > > > Hello All, > > I've been quite impressed with certain features of Geronimo, > notably the pleasant, simple admin console and the speed of > installing and > restarting applications. However I have been unsuccessful in my > attempts to > configure the version of Tomcat embedded in the release. > > > Thanks for the complement! > > It might not be easy to change the tomcat version. Knowing which > geronimo > release you are working with would be helpful in thinking about > what you > might do. Out of curiousity why do you want to change the tomcat > version? > > > I have been trying to configure tomcat valves; the > JDBCAccessLogValve and RemoteAddrValve. I found some examples on > the IBM > website and in the geronimo documentation, but couldn't get them to > work. > > > This should definitely work without changing which tomcat you are > using. > Did you get errors or just no effect? Showing what you did to > install them > and the results would be helpful. > > thanks > david jencks > > > Embarrassingly I've not been successful trying to > compile the sources from the trunk either, which keeps compaining > about > missing resources. I'm pretty sure I've followed the directions in the > documentation. > > Is there someone who has the time to walk this newbie through the > configuration and building process? > > Thanks, > > Rick > > > >