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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]