用Eclipse Galeleo版本,
Log4J的配置文件放在一个项目中,web项目引用了这个项目,用
URL url = Constants.class.getClass().getResource(Constants.getLog4JConfigurationPath());
DOMConfigurator.configure(url);
获取url,始终是null。Constants里面的路径是正确的,如果用UnitTest引用,则可以找到,好像是Eclipse路径找不到的问题,有谁知道为什么吗