Currently I have some problem in my application with log4j.
my log printing 2 times in the log file.
 
I am using websphere 4.0 app server .
 
we have one ear file and inside ear file 2 war file -application.
 
for example..  eg.ear --contains test1.war and test2.war
 
having different context /test1 and /test2 .
 
both application using same servlet ..TestServlet.class
 
I am using my own application xml file for logpattern and log file.so not any  log4j 
specfic configuration xml.
 
my own xml:
<property logpattern = "%c ....">
<property location ="/export/home/bala/common.log">
 
suppose I send the request to my first application /test1
 
http://ipaddress:8990/test1/TestServlet?L=EN
 
then log common.log generted and printing my log messages one time..
 
now I send the request to /test2 then 
 
http://ipaddress:8990/test2/TestServlet?L=EN
 
log printing 2 times the same line.
 
why this happening...
 
may be two threads for same instance ..TestServlet Class
 
Only point here I am using sameservlet and create the log.
Is it any problem for this?
 
Its working fine with single ear file with single war file.
 
 
In my program I am using Category.getInstance("name");
 
then appender ..DailyRollAppender.
 
Anybody help on this?
 
Thanks
Bala

Yahoo! India Matrimony: Find your partner online.Post your profile.

Reply via email to