tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From funk...@apache.org
Subject svn commit: r833121 - /tomcat/trunk/java/org/apache/catalina/startup/Catalina.java
Date Thu, 05 Nov 2009 18:46:43 GMT
Author: funkman
Date: Thu Nov  5 18:46:43 2009
New Revision: 833121

URL: http://svn.apache.org/viewvc?rev=833121&view=rev
Log:
https://issues.apache.org/bugzilla/show_bug.cgi?id=47495

If server.xml doesnt have read permission - let the user know


Modified:
    tomcat/trunk/java/org/apache/catalina/startup/Catalina.java

Modified: tomcat/trunk/java/org/apache/catalina/startup/Catalina.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/startup/Catalina.java?rev=833121&r1=833120&r2=833121&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/startup/Catalina.java (original)
+++ tomcat/trunk/java/org/apache/catalina/startup/Catalina.java Thu Nov  5 18:46:43 2009
@@ -516,6 +516,9 @@
 
         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;
         }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message