Tomcat启动错误:
- 2007-2-28 18:38:47 org.apache.catalina.core.StandardContext start
- 严重: Error listenerStart
- 2007-2-28 18:38:47 org.apache.catalina.core.StandardContext start
- 严重: Context [/function] startup failed due to previous errors
web.xml中的相关配置是这样的:
- <context-param>
- <param-name>contextConfigLocation</param-name>
- <param-value>/WEB-INF/classes/applicationContext.xml</param-value>
- </context-param>
- <listener>
- <listener-class>
- org.springframework.web.context.ContextLoaderListener
- </listener-class>
- </listener>
后来改用servlet加载spring 在web.xml里改为
- <context-param>
- <param-name>contextConfigLocation</param-name>
- <param-value>
- /WEB-INF/classes/applicationContext.xml
- </param-value>
- </context-param>
- <servlet>
- <servlet-name>context</servlet-name>
- <servlet-class>
- org.springframework.web.context.ContextLoaderServlet
- </servlet-class>
- <load-on-startup>1</load-on-startup>
- </servlet>
就OK了.
一下啊? 为什么这样呢