DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21367>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21367 log4j:ERROR Ignoring configuration file [nulllog4j.properties]. Summary: log4j:ERROR Ignoring configuration file [nulllog4j.properties]. Product: Log4j Version: 1.0 Platform: Other URL: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4091 OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Configurator AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] First, we thought as per the above URL that this is a tomcat problem. <<log4j:ERROR Could not read configuration file [nulllog4j.properties]. java.io.FileNotFoundException: nulllog4j.properties (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:103) at java.io.FileInputStream.<init>(FileInputStream.java:66) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:300) at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:318) at com.privasphere.privalope.util.Log4JServlet.init(Log4JServlet.java:34) at javax.servlet.GenericServlet.init(GenericServlet.java:256)>> But now we realize that log4j.properties is present in the .war file at the very same location as all the jsp files. How can we find out a) where log4j looks for b) what file? The error log as per the above URL neither mentions "log4j.properties" nor the path it is searching for. In source/com/privasphere/privalope/util/Log4JServlet.java, we do <<... import org.apache.log4j.PropertyConfigurator; public class Log4JServlet extends HttpServlet { public void init() throws ServletException { // Get Fully Qualified Path to Properties File String path = getServletContext().getRealPath("/"); String propfile = path + getInitParameter("propfile"); // Initialize Properties for All Servlets PropertyConfigurator.configure(propfile); //Line 34 ...>> << <servlet> <servlet-name>log4j</servlet-name> <servlet-class>com.privasphere.privalope.util.Log4JServlet</servlet-class> <init-param> <param-name>propfile</param-name> <param-value>log4j.properties</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> >> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]