I need to upload the log4j.xml configuration file to my website in order to initialize logging. log4j.xml is in the com.test.config package.
when in j2se java application code
InputStream input = ClassLoader.getSystemClassLoader().getResourceAsStream("com/test/config/log4j.xml");
returns the original thread, but when I execute this in the servlet, it returns null. servlet is a java web application deployed on glass planet 2.1
who cares?
source
share