今天在进行spring3.1配置的时候,
遇到了Error configuring application listener of class org.springframework.web.context.ContextLoaderListener的错误 ,
按照网上的方法试了好多种,
最后发现是无法找到applicationContext.xml文件造成的。
解决办法:
首先,必须保证所有必须的jar包都已导入到/WEB-INF/lib文件夹中。
其次,在web.xml中加入
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext-*.xml,classpath*:applicationContext-*.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
一定要注意<param-value>……</param-value>中内容,如果不对的话,是找不到applicationContext.xml文件滴~~~
分享到:
相关推荐
在使用Maven构建项目时,可能会遇到发布到Tomcat服务器的困难,Error configuring application listener of class org.springframework.web.context.ContextLoaderListener错误,无法加载相应的 jar 文件,导致项目...
stuts2项目启动tomcat报错:Error configuring application listener of class org.apache.struts2.dispatcher.ng.listener.StrutsListener,缺少的是这个javassist-3.11.0.GA.jar
This book is meant for Java developers with little or no knowledge of Spring Framework. All the examples shown in this book use Spring 4. You can download the examples (consisting of 60 sample ...
再者,如果在配置监听器时遇到`Error configuring application listener of class org.springframework.web.context.ContextLoaderListener`,可能是因为Eclipse在生成项目时遗漏了一些必要的Spring库。此时,应手动...
严重: Error configuring application listener of class com.sun.xml.ws.transport.http.servlet.WSServletContextListener java.lang.ClassNotFoundException: ...
解决异常:Error configuring application listener of class com.sun.xml.ws.transport.http.servlet.WSServletContextListener java.lang.ClassNotFoundException: ...
8.1. Configuring Web Flow in Spring 8.1.1. Wiring a flow executor 8.1.2. Configuring a flow registry 8.1.3. Handling flow requests 8.2. The components of a flow 8.2.1. States 8.2.2. Transitions 8.2.3....
3. New Features and Enhancements in Spring Framework 4.0 ............................................ 17 3.1. Improved Getting Started Experience .........................................................
接下来,关于IntelliJ IDEA的问题,错误“Error configuring application listener of class org.springframework.web.context.ContextLoaderListener”通常意味着Spring MVC应用的配置不完整。解决方法是确保IDEA的...
3. New Features and Enhancements in Spring Framework 4.0 ............................................ 17 3.1. Improved Getting Started Experience .........................................................
Mapping Error Pages outside of Spring MVC 27.1.12. Spring HATEOAS 27.1.13. CORS Support 27.2. The “Spring WebFlux Framework” 27.2.1. Spring WebFlux Auto-configuration 27.2.2. ...
MCTS 70-643 Configuring Windows Server 2008 Application Infrastructure.part1
MCTS 70-643 Configuring Windows Server 2008 Application Infrastructure.part2
Table of Contents Configuring a Spring Development Environment Spring Framework Fundamentals Web Application Architecture Spring MVC Architecture Implementing Controllers Implementing Controllers ...
根据提供的文件信息,可以推断这是一本关于Spring Security的专业书籍,书名为《Pro+Spring+Security》,主要面向Java开发者。该书深入探讨了Spring Security框架,涵盖了从基础的安全概念到高级的安全策略实施。接...
Configuring SAP R3 FICO The Essential Resource for Configuring the Financial and Controlling Modules.part3