Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 41133 invoked from network); 3 Aug 2009 02:40:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Aug 2009 02:40:49 -0000 Received: (qmail 14804 invoked by uid 500); 3 Aug 2009 02:40:53 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 14703 invoked by uid 500); 3 Aug 2009 02:40:53 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 14692 invoked by uid 99); 3 Aug 2009 02:40:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Aug 2009 02:40:53 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.137.26.150] (HELO web112508.mail.gq1.yahoo.com) (98.137.26.150) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 03 Aug 2009 02:40:42 +0000 Received: (qmail 44690 invoked by uid 60001); 3 Aug 2009 02:34:23 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1249266863; bh=rvpdqy3xjd/SajkqegfDReS+Ka+HT5kagZUNHAsEKeQ=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Jz8KRFIvwYf5iBv8LIMsSl/qBXmsJyAhdIAgnUrkAayKreU4onmtZlk64QfB/NROeBBqmgYxOMU0jumf+dPGN973+L57hPhsWOI1vBh7OFWYXPUYbI4mm83LJzeEu7TBO6PklEv299LYvT4ke7QLrww0/1I7pH2hLy5q+au6EuE= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=MT2g1ziFbmJzVI8HfhSfF3/a5BCbYxAZSjSlSrQ2VHojl8RCopytlGJ9avZqeQeWzuz2WirIDXFsbwc65w/MBT8lmDSY3aOqUCRRUJmiwFgDjef2/rNXpyIKEdm3R+XLJKOx+aW2Fc7qVffJ52dNMuwEjul2i+x4cY0SOipgST8=; Message-ID: <50755.44379.qm@web112508.mail.gq1.yahoo.com> X-YMail-OSG: UkUJGPIVM1l0Ug8TORJq2ciWR2E5zS42scg5xkjZNYtcQBdluI_Ev2eqoTFAiDHWzgRVtJ8zKlWnJCoSns4l8cvoXLmWPUybZP2S78MNgV34hWChrRx6FWeRIn.PTHOe7bke_42hqX_q5xECqtnMLWKmnQbtnS0LrmViJUMI_4SWG59PTRDYnJtqOXGN75lzRb_IEMYBMj8OKWfsrIXulTKAvRdxlK_2KQZIEu348vu.ujo_SUfFldqF7lKoXR2le38XcJZ79_excxFhpMC8ewLyGOVBRESFRE.hT9Ql6Ayem5WSKn8- Received: from [71.67.135.55] by web112508.mail.gq1.yahoo.com via HTTP; Sun, 02 Aug 2009 19:34:21 PDT X-Mailer: YahooMailClassic/6.1.2 YahooMailWebService/0.7.289.15 Date: Sun, 2 Aug 2009 19:34:21 -0700 (PDT) From: Steven Mahurin Subject: Re: 5.5.28 issue when multiple services with engines named the same To: Tomcat Developers List In-Reply-To: <4A763916.3040109@hanik.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Filip, Yeah, I just went back and re-read the Engine config documentation. It seem= s as though I misunderstood it when I read it last time. =20 "When using muliple Service elements=20 in the same Server, each Engine MUST=20 be assigned a unique name." I was thinking it was saying each Engine had to have a unique name in the s= ervice it was defined within...but each service can only have one so what w= ould be the point of that statement. :) Thanks for the clarification. -steve --- On Sun, 8/2/09, Filip Hanik - Dev Lists wrote: > From: Filip Hanik - Dev Lists > Subject: Re: 5.5.28 issue when multiple services with engines named the s= ame > To: "Tomcat Developers List" > Date: Sunday, August 2, 2009, 9:10 PM > Hi Steven, I think the engine name > unique per server has been there for=20 > a very long time. for example the directory > conf/Catalina/localhost/ > is > conf/Engine name/Host name > and not Service name, so this would make the engine unique >=20 > filip >=20 >=20 > On 08/02/2009 12:16 PM, Steven Mahurin wrote: > > I am using tomcat 5.5.27 to run a set of simple set of > applications.=A0 I am looking at 5.5.28 to address a > number of security vulnerabilties.=A0 When I tried the > 5.5.28, we ran into an issue when two services were defined > in server.xml, if the same engine name was used for both but > different host names/settings, the second engine would not > start up. This worked in 5.5.27, and the documentation > indicates that the engine name must be unique-per-service, > not per server.=A0 Is this a known issue? > > > > I ended up just renaming the engine defined in the > second service and it works fine.=A0 However, this may > cause other people issue when going to 5.5.28 from previous > releases, and it seems to differ from the configuration > reference. > > > > Note that I verified that this issue is present using > the 5.5.28 build that Filip had as a release candidate on > 7/24: > > http://people.apache.org/~fhanik/tomcat/tomcat-5.5/v5.5.28/ > > > > You should be able to reproduce this by adding a > service definition similar to the following to the end of > the default server.xml file (and creating a webapps-testonly > folder in the tomcat directory): > > > > > >=A0 =A0 =A0 defaultHost=3D"testpsuedohostname"> > >=A0 =A0 =A0 =A0 className=3D"org.apache.catalina.realm.UserDatabaseRealm" > resourceName=3D"UserDatabase" /> > >=A0 =A0 =A0 =A0 name=3D"testpsuedohostname" appBase=3D"webapps-testonly" /> > >=A0 =A0 =A0 > >=A0 =A0 =A0 enableLookups=3D"false" protocol=3D"AJP/1.3" address=3D"127.0.0.1" > /> > >=A0 =A0 > > > > In 5.5.27, both defined services startup > normally.=A0 In 5.5.28, the following trace is generated > when the above testservice starts up: > > INFO: Starting service testservice > > Aug 1, 2009 2:22:19 PM > org.apache.catalina.core.StandardEngine start > > INFO: Starting Servlet Engine: Apache Tomcat/5.5.28 > > Aug 1, 2009 2:22:19 PM > org.apache.catalina.connector.MapperListener > handleNotification > > WARNING: Error registering Host > Catalina:type=3DHost,host=3Dtestpsuedohostname > > java.lang.NullPointerException > >=A0 =A0 =A0 at > org.apache.catalina.connector.MapperListener.registerHost(MapperListener.= java:337) > >=A0 =A0 =A0 at > org.apache.catalina.connector.MapperListener.handleNotification(MapperLis= tener.java:218) > >=A0 =A0 =A0 at > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor$ListenerWrapper.han= dleNotification(DefaultMBeanServerInterceptor.java:1732) > >=A0 =A0 =A0 at > javax.management.NotificationBroadcasterSupport.handleNotification(Notifi= cationBroadcasterSupport.java:257) > > ... > > > > > > I haven't looked into the change that caused the > difference, as the work around appeared to be simple (just > rename the engine).=A0 I believe its a bug, but haven't > reported it yet as a bug because I wanted to make sure my > understanding of the configuration documentation was correct > (engine name unique-per-service vs unique-per-server). > > > > Thanks, > > > > -steve > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org > > For additional commands, e-mail: dev-help@tomcat.apache.org > > > > > >=A0 =A0=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org > For additional commands, e-mail: dev-help@tomcat.apache.org >=20 > =0A=0A=0A --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org