这是怎么回事?报错信息是:og4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
2009-8-1 14:48:38 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2009-8-1 14:48:38 org.apache.catalina.core.StandardContext start
严重: Context [/mytest] startup failed due to previous errors
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
2009-8-1 14:48:40 org.apache.coyote.http11.Http11BaseProtocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2009-8-1 14:48:41 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2009-8-1 14:48:41 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/16 config=null
2009-8-1 14:48:41 org.apache.catalina.storeconfig.StoreLoader load
信息: Find registry server-registry.xml at classpath resource
2009-8-1 14:48:41 org.apache.catalina.startup.Catalina start
我的web.xml文件是: <listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
------解决方法--------------------------------------------------------
放个log4j.properties再看详细日志吧。
------解决方法--------------------------------------------------------
一看就知道,在web中缺少了对Action的配置
改为
<context-param> <param-name>contextConfigLocation</param-name> <param-value> /WEB-INF/spring-config/applicationContext.xml </param-value> </context-param> <listener> <listener-class> org.springframework.web.context.ContextLoaderListener </listener-class> </listener>