https://issues.apache.org/bugzilla/show_bug.cgi?id=47495
authorfunkman <funkman@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 5 Nov 2009 18:46:43 +0000 (18:46 +0000)
committerfunkman <funkman@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 5 Nov 2009 18:46:43 +0000 (18:46 +0000)
If server.xml doesnt have read permission - let the user know

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@833121 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/startup/Catalina.java

index 083b9b6..31dd0d6 100644 (file)
@@ -516,6 +516,9 @@ public class Catalina extends Embedded {
 
         if ((inputStream == null) && (file != null)) {
             log.warn("Can't load server.xml from " + file.getAbsolutePath());
+            if (file.exists() && !file.canRead()) {
+                log.warn("Permissions incorrect, read permission is not allowed on the file.");
+            }
             return;
         }