Don't swallow error
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 24 Nov 2010 15:58:46 +0000 (15:58 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 24 Nov 2010 15:58:46 +0000 (15:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1038656 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/core/LocalStrings.properties
java/org/apache/catalina/core/StandardEngine.java

index 0adb465..463bb93 100644 (file)
@@ -152,6 +152,7 @@ standardContext.workPath=Exception obtaining work path for context [{0}]
 standardContext.wrapper.error=JSP file {0} must start with a ''/'
 standardContext.wrapper.warning=WARNING: JSP file {0} must start with a ''/'' in Servlet 2.4
 standardEngine.alreadyStarted=Engine has already been started
+standardEngine.jvmRouteFail=Failed to set Engine's jvmRoute attribute from system property
 standardEngine.mappingError=MAPPING configuration error for server name {0}
 standardEngine.noHost=No Host matches server name {0}
 standardEngine.noHostHeader=HTTP/1.1 request with no Host: header
index f702b50..bbc1fc3 100644 (file)
@@ -62,6 +62,7 @@ public class StandardEngine extends ContainerBase implements Engine {
         try {
             setJvmRoute(System.getProperty("jvmRoute"));
         } catch(Exception ex) {
+            log.warn(sm.getString("standardEngine.jvmRouteFail"));
         }
         // By default, the engine will hold the reloading thread
         backgroundProcessorDelay = 10;