Sorry, mistake on my part. The Log4j.properties is under /classes . Works fine now.

On Oct 29, 2004, at 9:29 AM, Mufaddal Khumri wrote:

Hi,

I am new to Log4j and am trying to read the configuration settings from WEB-INF/classes/log4j.properties

I am using Tomcat 5.0.27. I have been trying to do this in my contextListener:

        public void contextInitialized(ServletContextEvent sce)
        {       
                String fileName = sc.getRealPath("/") + "/WEB-INF/log4j.properties";
                PropertyConfigurator.configureAndWatch(fileName,2000);
                ......
        }

As soon as I include those lines in my webapps context listener, my webapp does not start on starting tomcat. When i comment
those lines off it starts normally. Any ideas whats going on here?



Mufaddal Khumri Software Developer Waves In Motion Phone: 602 956 7080 x 26 Email: [EMAIL PROTECTED]
Mufaddal Khumri
Software Developer
Waves In Motion
Phone: 602 956 7080 x 26
Email: [EMAIL PROTECTED]


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



Reply via email to