IDEA关于java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener问题解决
2019-04-11 20:33
531 查看
前言
学习三大框架整合过程中,发现一启动 tomcat 控制台就会报错如下:
org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class [org.springframework.web.context.ContextLoaderListener] java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
这里提供一种解决方法。
使用工具:IDEA
tomcat版本:9.0
JDK版本:1.8
解决思路
通过maven依赖添加的包没有到web的lib目录下,所以服务器找不到报错
解决方法
使用快捷键 ctrl+alt+shift+s,召唤出project structure 界面,选择Artifacts
选择自己的项目,在Output Layout界面下,查看自己的项目在web-inf 下是否有lib目录,如果没有新建一个
在右边界面中,选中自己项目名称一样文件夹,右键
选择 put into Output Root
他就会自动把包存放到lib文件下,这时候再启动tomcat,问题就可以解决啦!
相关文章推荐
- java.lang.ClassNotFoundException:org.springframework.web.context.ContextLoaderListener问题解决
- java.lang.ClassNotFoundException:org.springframework.web.context.ContextLoaderListener问题解决
- 解决SSM,java.lang.ClassNotFoundException:org.springframework.web.context.ContextLoaderListener 问题
- 真正解决问题:maven eclipse tomcat java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener--转
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener问题解决
- java.lang.ClassNotFoundException:org.springframework.web.context.ContextLoaderListener问题解决
- 问题解决-java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- IDEA调试SpringMvc项目时,出错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener,解决办法
- idea调试SpringMvc, 出现:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener错误的解决办法
- java.lang.ClassNotFoundException:org.springframework.web.context.ContextLoaderListener问题解决
- 关于java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener问题
- java.lang.ClassNotFoundException:org.springframework.web.context.ContextLoaderListener问题解决
- java.lang.ClassNotFoundException:org.springframework.web.context.ContextLoaderListener问题解决
- 解决问题 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener错误的问题的原由
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener的解决办法
- SSH框架问题——java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener报错
- Java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListenerj解决方法
- tomcat启动问题---java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- [Spring常见问题]java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener