import org.apache.catalina.loader.StandardClassLoader;
import org.apache.juli.logging.Log;
import org.apache.juli.logging.LogFactory;
+import org.apache.tomcat.util.res.StringManager;
/**
private static final Log log = LogFactory.getLog(ClassLoaderFactory.class);
+
+ private static final StringManager sm =
+ StringManager.getManager(Constants.Package);
protected static final Integer IS_DIR = Integer.valueOf(0);
protected static final Integer IS_JAR = Integer.valueOf(1);
} else if ( types[i] == IS_GLOB ) {
File directory=new File(location);
if (!directory.exists() || !directory.isDirectory() ||
- !directory.canRead())
+ !directory.canRead()) {
+ log.warn(sm.getString("classLoaderFactory.badDirectory",
+ directory.getAbsolutePath(),
+ Boolean.valueOf(directory.exists()),
+ Boolean.valueOf(directory.isDirectory()),
+ Boolean.valueOf(directory.canRead())));
continue;
+ }
if (log.isDebugEnabled())
log.debug(" Including directory glob "
+ directory.getAbsolutePath());
catalina.configFail=Unable to load server configuration from [{0}]
catalina.shutdownHookFail=The shutdown hook experienced an error while trying to stop the server
catalina.stopServer=No shutdown port configured. Shut down server through OS signal. Server not shut down.
+classLoaderFactory.badDirectory=Problem with directory [{0}], exists: [{1}], isDirectory: [{2}], canRead: [{4}]
contextConfig.altDDNotFound=alt-dd file {0} not found
contextConfig.applicationUrl=Unable to determine URL for application web.xml
contextConfig.applicationMissing=Missing application web.xml, using defaults only
<section name="Tomcat 7.0.9 (markt)">
<subsection name="Catalina">
<changelog>
+ <fix>
+ <bug>48863</bug>: Better logging when specifying an invalid directory
+ for a class loader. Based on a patch by Ralf Hauser. (markt)
+ </fix>
<add>
Enhance the RemoteIpFilter and RemoteIpValve so that the modified remote
address, remote host, protocol and server port may be used in an access