log4j

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • karthikrajrajkumarmylu
    New Member
    • Jul 2007
    • 3

    #1

    log4j

    hi I am using the Eclipse for the development and When I deploy my war file it tells
    log4j:WARN No appenders could be found for logger (org.springfram ework.web.servl et.DispatcherSe rvlet).
    log4j:WARN Please initialize the log4j system properly.
    can u give any advice
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by karthikrajrajku marmylu
    hi I am using the Eclipse for the development and When I deploy my war file it tells
    log4j:WARN No appenders could be found for logger (org.springfram ework.web.servl et.DispatcherSe rvlet).
    log4j:WARN Please initialize the log4j system properly.
    can u give any advice
    If you don't explicitly initialize/configure the log4j framework yourself it tries to
    find a file "log4j.properti es" and use that for initialization purposes. You forgot
    to store that file in a directory where it can be found by log4j. Read the manual.

    kind regards,

    Jos

    Comment

    • koneru9999
      New Member
      • Jul 2007
      • 6

      #3
      you check whether the log4j.propertie s file exists or not in tomcat/common/classes folder...

      Comment

      • karthikrajrajkumarmylu
        New Member
        • Jul 2007
        • 3

        #4
        I have created the properties folder and the configured in the log4j start up script

        Comment

        • JosAH
          Recognized Expert MVP
          • Mar 2007
          • 11453

          #5
          Originally posted by karthikrajrajku marmylu
          I have created the properties folder and the configured in the log4j start up script
          Does it work now? If not, you didn't store that .properties file in the correct directory.

          kind regards,

          Jos

          Comment

          Working...