This content has been marked as final.
Show 1 reply
-
1. Re: Startup Classpath Not What I Expected
dadams07 Oct 6, 2010 2:44 PM (in response to dadams07)I mis-spoke slightly. I re-checked the WAR, and the log4j config file is in WEB-INF classes, which means the classpath seaches should find it. Yet this code fails to do so:
if (logger == null) {
final URL url = ClassLoader.getSystemResource(CONFIG_FILE_NAME);
if (url == null) {
final String classPath = System.getProperty("java.class.path");
final String message = format(NO_CONFIG_FILE, CONFIG_FILE_NAME, classPath);
System.err.println(message);
throw new RuntimeException(message);
}