maven项目启动Error configuring application listener of class org.springframework.web.context.ContextLoad
来源:互联网 发布:mac acl是什么意思 编辑:程序博客网 时间:2024/05/19 23:14
用maven 工程搭建项目,在搭建好之后,运行时却抛出了这样的错误: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener, 这说明根本没有找到我们在 web.xml 里面配置的 listener, 但maven 的pom.xml 里面已经配置相应的包,而且可以在java 工程的maven dependency jar 包里面找到, 这说明maven是没有问题的,在网上搜索了很多答案,最多的就是类似这个文章: http://www.cnblogs.com/zhouyalei/archive/2011/11/30/2268606.html 基本都是这样去解决,但是貌似对我来说不行,而且比较麻烦,需要修改 .project , .classpath 等文件。其实有更简单的办法.
在eclipse 里面, 参考如下配置:
1. 右键单击工程项目 ->点击 properties
2. 选择 Deployment Assembly
3. 点击 Add -> Java Build Path Entries -> Next
4. 选择 Maven Dependencies -> Finish -> Apply -> OK
5. Clean project and server. 重启server
这样就能解决maven 下找不到 spring listener 的问题。一个最明显的变化是你的web 工程里面明显多了一个jar包。
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener, 这说明根本没有找到我们在 web.xml 里面配置的 listener, 但maven 的pom.xml 里面已经配置相应的包,而且可以在java 工程的maven dependency jar 包里面找到, 这说明maven是没有问题的,在网上搜索了很多答案,最多的就是类似这个文章: http://www.cnblogs.com/zhouyalei/archive/2011/11/30/2268606.html 基本都是这样去解决,但是貌似对我来说不行,而且比较麻烦,需要修改 .project , .classpath 等文件。其实有更简单的办法.
在eclipse 里面, 参考如下配置:
1. 右键单击工程项目 ->点击 properties
2. 选择 Deployment Assembly
3. 点击 Add -> Java Build Path Entries -> Next
4. 选择 Maven Dependencies -> Finish -> Apply -> OK
5. Clean project and server. 重启server
这样就能解决maven 下找不到 spring listener 的问题。一个最明显的变化是你的web 工程里面明显多了一个jar包。
0 0
- maven项目启动Error configuring application listener of class org.springframework.web.context.ContextLoad
- 求大神赐教严重: Error configuring application listener of class org.springframework.web.context.ContextLoad
- maven管理的项目出现Error configuring application listener of class org.springframework.web.context.Context
- maven管理的项目出现Error configuring application listener of class org.springframework.web.context.ContextL
- Error configuring application listener of class org.springframework.web.context.
- 启动服务器报错: 严重: Error configuring application listener of class org.springframework.web.context.Context
- maven 严重: Error configuring application listener of class org.springframework.web.context.ContextL
- tomcat启动报错:Error configuring application listener of class org.springframework.web.context.ContextLo
- tomcat启动报错:Error configuring application listener of class org.springframework.web.context.ContextLo
- tomcat启动报错:Error configuring application listener of class org.springframework.web.context.ContextLo
- 六年神贴【急!!tomcat启动报错:Error configuring application listener of class org.springframework.web.context.】
- tomcat启动报错:Error configuring application listener of class org.springframework.web.context.ContextLo
- 部署项目时出现:Error configuring application listener of class org.springframework.web.context.解决方案
- Error configuring application listener of class org.springframework.web.context.Context
- Tomcat启动抛错——SEVERE: Error configuring application listener of class org.springframework.web.context.
- Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
- 严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
- Spring异常:Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
- Invalid bound statement (not found)
- Scikit-learn提供的例子介绍几种常用的特征选择
- 用ContentObserver内容观察者写了一个自动填写验证码
- Python数据抓取
- Python 元组遍历排序操作方法
- maven项目启动Error configuring application listener of class org.springframework.web.context.ContextLoad
- ICPCCamp2017 Day 5 I Coprime Queries(莫比乌斯函数 + 容斥定理 + 二分)
- RNN以及LSTM的介绍和公式梳理
- Python 猜数小游戏
- ContentResolve内容访问者(访问系统)
- C# 图片识别(支持21种语言)
- Android内存分析
- SAP S/4HANA 1610新版本有哪些新功能
- Linux Used内存到底哪里去了?