Dear Bala ,
I am not aware that how you are implementing log4j but I explain you my implemtaion. This may Help you.
1) We have imported following classes
org.apache.log4j.Logger;
org.apache.log4j.PropertyConfigurator;
2) Then we are intialiazing out log4j by
PropertyConfigurator.configure(fileName) here file name is complete path of log4j.properties.
I think you are using log4j.xml instead of log4j.properties but that hardly makes any difference.
3) since we are using logger in
ejb container also hence I had to put log4j.jar in my application lib instead of web-inf\lib
tell me how you are initialiazing your configuraion of log4j
[ October 11, 2004: Message edited by: Shailesh Chandra ]