Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 8362 invoked from network); 2 Feb 2004 17:38:28 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 Feb 2004 17:38:28 -0000 Received: (qmail 47781 invoked by uid 500); 2 Feb 2004 17:35:45 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 47728 invoked by uid 500); 2 Feb 2004 17:35:45 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 47652 invoked by uid 500); 2 Feb 2004 17:35:44 -0000 Received: (qmail 47622 invoked from network); 2 Feb 2004 17:35:44 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 2 Feb 2004 17:35:44 -0000 Received: (qmail 7412 invoked by uid 1135); 2 Feb 2004 17:35:47 -0000 Date: 2 Feb 2004 17:35:47 -0000 Message-ID: <20040202173547.7411.qmail@minotaur.apache.org> From: remm@apache.org To: jakarta-tomcat-catalina-cvs@apache.org Subject: cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5 MapperListener.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N remm 2004/02/02 09:35:47 Modified: catalina/src/share/org/apache/coyote/tomcat5 MapperListener.java Log: - Bug 26567: The mapper will complain if the default host is not known, which could make mapping fail without a way to easily identify the cause. Initialization will not fail, this is simply a warning message. - (obviously, this class needs lang strings) Revision Changes Path 1.16 +5 -0 jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/MapperListener.java Index: MapperListener.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/MapperListener.java,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- MapperListener.java 26 Jan 2004 20:19:10 -0000 1.15 +++ MapperListener.java 2 Feb 2004 17:35:47 -0000 1.16 @@ -290,6 +290,11 @@ if ( ! mBeanServer.isRegistered(engineName)) return; String defaultHost = (String) mBeanServer.getAttribute(engineName, "defaultHost"); + ObjectName hostName = new ObjectName + (domain + ":type=Host," + "host=" + defaultHost); + if (!mBeanServer.isRegistered(hostName)) { + log.warn("Unknown default host: " + defaultHost); + } // This should probablt be called later if( defaultHost != null ) { mapper.setDefaultHostName(defaultHost); --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org