Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 8648 invoked from network); 2 Aug 2009 18:17:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Aug 2009 18:17:22 -0000 Received: (qmail 56374 invoked by uid 500); 2 Aug 2009 18:17:26 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 56286 invoked by uid 500); 2 Aug 2009 18:17:25 -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 56275 invoked by uid 99); 2 Aug 2009 18:17:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 18:17:25 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.137.26.174] (HELO web112514.mail.gq1.yahoo.com) (98.137.26.174) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 02 Aug 2009 18:17:16 +0000 Received: (qmail 43664 invoked by uid 60001); 2 Aug 2009 18:16:55 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1249237015; bh=lQg11t/c2HstKWXnDfLIlPJas7oG2uoFp+vAsueis4I=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=Dn5Vj+iTruqhglKBIV4YUGgFTA6ZY6FlS465uzU5N4JP+OIcZQTJqZDEg58O701ehTGEpW+712PFnFsIfFySctB/0qhAvsAK3hL36Zoo2qSaPjGIGPwCd6gEnjYpH38VYNxTARChESbP6OpBAVPo9Q5D/kxSUcBzl3n9eVYbqj0= 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:MIME-Version:Content-Type; b=goq1xBCLSRe9Aj2at8nOke9TlfMM3BHcRxtloNw+tfNlnAkIkXOmRB6VTfhdXtSOIjDeDF1KbULrCWlec1cQqUStBgfosfqOSuuN06a2hvL2uiIKJGmDSE4L8EMlRHdiUPPSPqI4fNgE+/IstFhodT8ljwdTIbF0scfRsSt9DhY=; Message-ID: <751620.43194.qm@web112514.mail.gq1.yahoo.com> X-YMail-OSG: EKmHr20VM1l1_7AJCzS4p7pOQz_4eZqexF53Z5VtwyaJiIw1sYXQMfyL87XBdStwE4PP5EnJoV0ls6IHaXzCzpR6MIFC._oLhGrVlEwqyNQhSwwC5rdBmfya0Rz8b_kYAuaEWSkg3ZLQnZH.kk07O8rqsshQs8LBk7nMX11drtsBk0BnEtCTSyB3cMOI4Vwm42zvktilS4CeDozU5vb5mnhbtqMysKdiOHKcFAzh32TYzrJvpI9U9ferwFBQ09hWtEDd1H.F09eofM2SP06pHa3tDp_z5eJ0cf3xdLn1aZ07tzyIxjgb Received: from [71.67.135.55] by web112514.mail.gq1.yahoo.com via HTTP; Sun, 02 Aug 2009 11:16:53 PDT X-Mailer: YahooMailClassic/6.1.2 YahooMailWebService/0.7.289.15 Date: Sun, 2 Aug 2009 11:16:53 -0700 (PDT) From: Steven Mahurin Subject: 5.5.28 issue when multiple services with engines named the same To: dev@tomcat.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked by ClamAV on apache.org I am using tomcat 5.5.27 to run a set of simple set of applications. I am looking at 5.5.28 to address a number of security vulnerabilties. 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. Is this a known issue? I ended up just renaming the engine defined in the second service and it works fine. 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): In 5.5.27, both defined services startup normally. 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=Host,host=testpsuedohostname java.lang.NullPointerException at org.apache.catalina.connector.MapperListener.registerHost(MapperListener.java:337) at org.apache.catalina.connector.MapperListener.handleNotification(MapperListener.java:218) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor$ListenerWrapper.handleNotification(DefaultMBeanServerInterceptor.java:1732) at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.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). 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