Hi All,
  I have been using log4j1.1.3 in my project so far, and have recently
swiched to the new version. I have kept the servlet code exactly the same
and have changed Category to Logger, while logging. I have the properties
file in the classpath and am using JRun2.3.3 as my web server. I get the
following exception in the init method of the servlet,

log4j:WARN Caught Exception while in Loader.getResource. This may be
innocuous.
java.lang.NullPointerException
        at org/apache/log4j/helpers/Loader.getResource (Loader.java:84)
        at org/apache/log4j/LogManager.<clinit> (LogManager.java:137)
        at org/apache/log4j/LogManager.getLogger (LogManager.java)
        at org/apache/log4j/Logger.getLogger (Logger.java:101)
        at com/intracorp/utilities/ClaraLogger.<clinit>
(ClaraLogger.java:18)
        at java/lang/ClassLoader.findSystemClass (ClassLoader.java)
        at com/livesoftware/jrun/JRunServletLoader.loadClass
(JRunServletLoader.java:244)
        at java/lang/ClassLoader.loadClassInternal (ClassLoader.java)
        at jsp/Clara/ClaraLogin.service (ClaraLogin.java)
        at javax/servlet/http/HttpServlet.service (HttpServlet.java:828)
        at com/livesoftware/jrun/plugins/jsp/JSPCore.runServlet
(JSPCore.java:762)
        at com/livesoftware/jrun/plugins/jsp/JSP.callPage (JSP.java:621)
        at com/livesoftware/jrun/plugins/jsp/JSP.service (JSP.java:526)
        at javax/servlet/http/HttpServlet.service (HttpServlet.java:828)
        at com/livesoftware/jrun/JRun.runServlet (JRun.java:305)
        at com/livesoftware/jrun/JRunGeneric.handleConnection
(JRunGeneric.java:109)
        at com/livesoftware/jrun/JRunGeneric.handleProxyConnection
(JRunGeneric.java:74)
        at
com/livesoftware/jrun/service/proxy/JRunProxyServiceHandler.handleRequest
(JRunProxyServiceHandler.java:104)
        at com/livesoftware/jrun/service/ThreadConfigHandler.run
(ThreadConfigHandler.java:96)
Could not initialize log4j.......

Has anyone successfully used PropertyConfigurator to configure log4j in
log4j-1.2rc1 version?

Thanks,
Ranjini.


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to