Results 1 to 3 of 3
  1. #1
    namrata014 is offline Member
    Join Date
    Jul 2009
    Posts
    2
    Rep Power
    0

    Default Log4J properties file locked by tomcat

    Hi all,

    I am running log4j in a webapplication. But when I try to undeploy the app, the application does not get undeployed completely and cleanly. The log4j.properties file stays on the server, all other files are deleted from the webapp's folder.
    How do I ensure that this file is released when the webapp is undeployed. LogManager.shutdown() in the method contextDestroyed(ServletContextEvent sce) does not seem to stop the logging.
    Regards,
    N

  2. #2
    Bill_A is offline Member
    Join Date
    Jul 2009
    Posts
    1
    Rep Power
    0

    Default Files locked by log4j

    What versions of Tomcat, log4j.jar, JAVA are you using?
    What is the location of the log4j.properties files?
    Can u post the contents of the log4j.properties file?

  3. #3
    namrata014 is offline Member
    Join Date
    Jul 2009
    Posts
    2
    Rep Power
    0

    Default Versions

    Hi,

    The versions are as follows:
    Tomcat/5.5.20
    log4j 1.2.14
    Jdk 1.5
    Location of Log4j file in the war file:
    <<ApplicationNameFolder>>/build/classes

    My application has a thread running that continuously logs into a log file. How do i stop this logging.
    The log4j.properties file does not get locked onto Tomcat version 6.0.16. (But the currently running version cannot be replaced with this version)

    Regards,
    N
    Last edited by namrata014; 07-14-2009 at 08:06 AM.

Similar Threads

  1. Tomcat iBatis log4j
    By Tokajac in forum Web Frameworks
    Replies: 0
    Last Post: 07-17-2008, 03:02 PM
  2. Log4j - setting up name of log file
    By Virkant Pawar in forum New To Java
    Replies: 3
    Last Post: 06-03-2008, 07:39 AM
  3. log4j property file in my application
    By Peter in forum Advanced Java
    Replies: 3
    Last Post: 06-14-2007, 03:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •