2011-08-11 40 views
0

我無法通過Ant訪問部署在tomcat上的Web應用程序。它部署的很好,但是,當我訪問它時,瀏覽器給我404錯誤。卡塔利娜日誌給了我以下例外。它以前工作。我錯過了什麼?關於使用Spring/Log4j/Hibernate/Ant訪問Web應用程序的Tomcat錯誤[SEVERE:Error listenerStart]?

Aug 11, 2011 12:06:47 PM org.apache.catalina.startup.HostConfig deployWAR 
INFO: Deploying web application archive customercare.war 
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester). 
log4j:WARN Please initialize the log4j system properly. 
Aug 11, 2011 12:07:01 PM org.apache.catalina.core.StandardContext start 
SEVERE: Error listenerStart 
Aug 11, 2011 12:07:01 PM org.apache.catalina.core.StandardContext start 
SEVERE: Context [/customercare] startup failed due to previous errors 
Exception in thread "Timer-4" java.lang.NullPointerException 
    at com.mchange.v2.log.log4j.Log4jMLog$Log4jMLogger.isLoggable(Log4jMLog.java:257) 
    at com.mchange.v2.resourcepool.BasicResourcePool$CullTask.run(BasicResourcePool.java:1934) 
    at java.util.TimerThread.mainLoop(Timer.java:512) 
    at java.util.TimerThread.run(Timer.java:462) 

回答

0

你的記錄器不被配置右:

導致該錯誤是在外部的內Log4jMLogger類的行一個Log4jMLog

導致該錯誤的行是:return logger.isEnabledFor(level(l)); 所以你的堆棧跟蹤意味着變量logger爲空。

相關問題