dcsimg
log4j deploying problem
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Debabrata_Sarkar
Posted On:   Thursday, May 27, 2004 05:03 AM

Hi I am facing a problem with log4j configuration. I am using two classes in my application.One is a servlet and another is a java class.In that java class I wrote some functions for using LOG4J requests in a simple manner.In servlet, I called those functions for using log4j.I am using a XML configuration file . Whenever I deployed it to J2ee application server(j2ee1.3) it gives error like- log4j:WARN No appenders could be found for logger (mypack.ConfigureLog). log4j:WARN Please initialize the log4j system properly. Now some are telling that I should keep the XML file in "WEB-INFclasses" directory .But I am not able to include the XML file in that directory by j2e   More>>

Hi
I am facing a problem with log4j configuration.
I am using two classes in my application.One is a servlet and another is a java class.In that

java class I wrote some functions for using LOG4J requests in a simple manner.In servlet, I

called those functions for using log4j.I am using a XML configuration file .
Whenever I deployed it to J2ee application server(j2ee1.3) it gives error like-

log4j:WARN No appenders could be found for logger (mypack.ConfigureLog).
log4j:WARN Please initialize the log4j system properly.

Now some are telling that I should keep the XML file in "WEB-INFclasses" directory .But I
am not able to include the XML file in that directory by j2ee deploytool.
When I add it, its getting added outside "WEB-INF" directory.
Can anyone please tell me how to package the WAR file along with the log4j xml properties

file.

regards
~deb

   <<Less
About | Sitemap | Contact