WebWork+Spring+Hibernate
//当我在Web.xml中加入下列代码时,重新启动Tomcat
//Tomcat 提示
//2007-5-10 22:22:10 org.apache.catalina.core.StandardContext start
//严重: Error listenerStart
//2007-5-10 22:22:10 org.apache.catalina.core.StandardContext start
//严重: Context [/book] startup failed due to previous errors
//请问这是怎么回事?
<filter>
<filter-name> webwork </filter-name>
<filter-class>
com.opensymphony.webwork.dispatcher.FilterDispatcher
</filter-class>
</filter>
<filter>
<filter-name> securityFilter </filter-name>
<filter-class> org.thj.bookstore.util.SecurityFilter </filter-class>
</filter>
<filter-mapping>
<filter-name> webwork </filter-name>
<url-pattern> /* </url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name> securityFilter </filter-name>
<url-pattern> /jsp/* </url-pattern>
</filter-mapping>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener </listener-class>
</listener>
------解决方案--------------------检查tomcat/logs目录下的日志文件 看有么有具体的出错信息.
------解决方案--------------------把
<listener>
<listener-class> org.springframework.web.context.ContextLoaderListener </listener-class>
</listener>
改成
<servlet>
<servlet-name> context </servlet-name>
<servlet-class> org.springframework.web.context.ContextLoaderServlet </servlet-class>
<load-on-startup> 1 </load-on-startup>
</servlet>
------解决方案--------------------你这个applicationContext.xml文件放在WEB-INF下了吗?
这次的问题和你原来的问题不同了:)