web.xml<!-- 应用程序上下文路径 -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:META-INF/applicationContext.xml</param-value>
</context-param><!--Spring ApplicationContext 载入 -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:META-INF/applicationContext.xml</param-value>
</context-param><!--Spring ApplicationContext 载入 -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
解决方案 »
- 如何处理session失效
- servlet为什么不执行?
- Java调用DB2数据库的问题
- [满意答案给100分]设计模式 Command模式求教
- hibernate 错误
- 高分求助方案 javabean+servlet+jsp+MSServer2000 作一个新闻发布的后台,一点思路也没有,需要大家提供一些资料(源码)参考一下:)
- OracleJSP: oracle.jsp.parse.JspParseException: 行 # 1, <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
- tomcat连接池在数据库重启后失效
- 郁闷,我问的问题怎么没有人回答?:(郁闷……
- Hibeinate数据库有值 但是取不到
- Java面试归来好郁闷ing...请教了!!
- XMPP协议的问题 高分求助
2008-2-28 9:24:57 org.apache.catalina.core.StandardContext start
严重: Context [/s] startup failed due to previous errors
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<!-- Spring ApplicationContext配置文件的路径 -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:META-INF/applicationContext.xml</param-value>
</context-param>
<!-- Character Encoding filter -->
<filter>
<filter-name>encodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
<!--Hibernate Open Session in View Filter-->
<filter>
<filter-name>hibernateFilter</filter-name>
<filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>encodingFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>encodingFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>hibernateFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping> <!--Spring ApplicationContext -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener> <!-- Spring Introspector -->
<listener>
<listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>
</listener> <!-- Struts Action Mapping-->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet> <servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!-- session timeout -->
<session-config>
<session-timeout>10</session-timeout>
</session-config>
<!-- Index Page -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
<!-- Error Page -->
<error-page>
<error-code>500</error-code>
<location>/page/error.jsp</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/page/404.jsp</location>
</error-page>
<error-page>
<error-code>403</error-code>
<location>/page/403.jsp</location>
</error-page>
</web-app>