Announcement Announcement Module
Collapse
No announcement yet.
NoClassDefFoundError: org/apache/log4j/LogManager Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • NoClassDefFoundError: org/apache/log4j/LogManager

    Hi,

    I have a J2EE web Application using Spring 1.1.2. It works fine under Websphere 5.1.2. Now I am trying to upgrade it to Websphere 6. After I deployed the EAR file, in start up, I got the following error.

    [11/14/05 11:41:41:205 PST] 0000002e ServletWrappe E SRVE0100E: Did not realize init() exception thrown by servlet Log4JLoader: java.lang.NoClassDefFoundError: org/apache/log4j/LogManager
    at org.apache.log4j.xml.XMLWatchdog.doOnChange(DOMCon figurator.java:815)
    at org.apache.log4j.helpers.FileWatchdog.checkAndConf igure(FileWatchdog.java:80)
    at org.apache.log4j.helpers.FileWatchdog.<init>(FileW atchdog.java:49)
    at org.apache.log4j.xml.XMLWatchdog.<init>(DOMConfigu rator.java:807)
    at org.apache.log4j.xml.DOMConfigurator.configureAndW atch(DOMConfigurator.java:574)
    at org.springframework.util.Log4jConfigurer.initLoggi ng(Log4jConfigurer.java:62)
    at org.springframework.web.util.Log4jWebConfigurer.in itLogging(Log4jWebConfigurer.java:97)
    at org.springframework.web.util.Log4jConfigServlet.in it(Log4jConfigServlet.java:50)
    at javax.servlet.GenericServlet.init(GenericServlet.j ava:256)

    Please advise.

    Thanks a lot,

    Yin

  • #2
    Yin,

    Do you have two versions of log4j.jar on the classpath? Do you have log4j.jar on the classpath at all?

    Rob

    Comment


    • #3
      Hi Rob,

      I have log4j-1.2.8.jar in \WEB-INF\lib.

      Thanks,

      Yin.

      Comment

      Working...
      X