From 4f4e519432745124d6dde4e01157f71a7a0940b1 Mon Sep 17 00:00:00 2001 From: funkman Date: Thu, 5 Nov 2009 18:46:43 +0000 Subject: [PATCH] https://issues.apache.org/bugzilla/show_bug.cgi?id=47495 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/java/org/apache/catalina/startup/Catalina.java b/java/org/apache/catalina/startup/Catalina.java index 083b9b611..31dd0d622 100644 --- a/java/org/apache/catalina/startup/Catalina.java +++ b/java/org/apache/catalina/startup/Catalina.java @@ -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; } -- 2.11.0