• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem of log4j in tomcat 4.1.27

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Friends,

I have created 2 context on the tomcat 4.1.27 and used log4j in both. The log file of both the context is different. But when i run tomcat. The log of both the context are print in the one log file only..
And the log will print in different log files as n when restarting tomcat.. Means while first time i start tomcat it prints log in first context's log file, and when i m restarting it for the second time it prints it in another context's log file..

If You people have any idea about it than plz let me know..
Regards,
Vrushank
[ November 30, 2004: Message edited by: Vrushank Joshi ]
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
do you have a log4j.jar file in each context's WEB-INF/lib directory, with the log4j.properties in the WEB-INF/classes directory?
 
Vrushank Joshi
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hii Mike,
Thank u for replying...
Yes, My property file is their...
But mind well this thing that
i m using the absolute path in which i want to put my log means like

log4j.appender.R.File=/usr/local/true_tomcat/webapps/iwap/logs/ideawap.log
in the second file i m using...
log4j.appender.R.File=/usr/local/true_tomcat/webapps/test/logs/ideawap.log

if i will use
log4j.appender.R.File=../webapps/iwap/logs/ideawap.log
log4j.appender.R.File=../webapps/test/logs/ideawap.log

than it works fine... But i dont want to use it... can u help me in the prob..
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic