Hello all,
A bit late, I'm afraid, but since I just got an off-list question about
it, and that it was a problem for me, maybe it can help others in the
future.
Hope it helps you, Tim, if not, don't hesitate to subscribe and post to
the list, there are many people that can help you better than
Shapira, Yoav wrote:
Howdy,
Neither in the JSPs nor the servlet: take Jacob's advice about the
ServletContextListener, it's a good one.
Ok, I got it!
I didn't know about that, I'm still quite a newbie at JSPs.
Created my class implementing ServletContextListener, put it in web.xml
of my app, rest
Jacob Kjome wrote:
Are you calling LogManager.shutdown() at application shutdown? If not,
try that, otherwise, the file will probably remain locked by the VM. Do
this in a servlet context listener contextDestroyed() method.
No, I'm not, and it's a good idea.
But I'm unsure if it's possible to
More data on my problem.
I could reproduce the problem: it happened right after I reload the apps
using the Manager app, using the URL:
https://myserver/manager/reload?path=/webapp
I could do this several times. After a Tomcat start/stop, the logging
and rotating works. After a reload, the curr
Thanks for your help!
It's not fixed yet, see below for my actions so far:
Shapira, Yoav wrote:
Add -Dlog4j.debug=true to your JAVA_OPTS when launching tomcats. Log4j
will then output internal debugging information to
$CATALINA_HOME/logs/catalina.out. Perhaps that will tell you something
useful
Tim Williams wrote:
I just joined the list so I missed the original post.
Is this about Log4J not rolling over files properly with the
RollingFileAppender?
Yep!
We ended up writing a modified version because for some reason it held locks
and wouldn't 'rollover' properly, so we lost the log files.
Hello all,
I hope this is not too much of a newbie question. I did look through the
documentation and on the internet, but I might have not done it the
right way.
Anyway, here is the problem:
I'm using log4j 1.2.8 in several webapps, for each it is inside a class
used by several JSPs.
The app