org.springframework.web.context.ContextLoaderListener
来源:互联网 发布:spaltoon2 知乎 编辑:程序博客网 时间:2024/06/06 19:38
一个web项目,maven的,用tomcat启动的时候报的异常,堆栈信息如下:
严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1333)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:520)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:501)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:120)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4715)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5236)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
解决思路:
进入项目的根目录,修改.classpath文件
代码:
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
0 0
- org.springframework.web.context.ContextLoaderListener
- org.springframework.web.context.ContextLoaderListener
- org.springframework.web.context.ContextLoaderListener
- org.springframework.web.context.ContextLoaderListener
- org.springframework.web.context.ContextLoaderListener
- org.springframework.web.context.ContextLoaderListener
- org.springframework.web.context.ContextLoaderListener .
- org.springframework.web.context.ContextLoaderListener
- org.springframework.web.context.ContextLoaderListener
- org.springframework.web.context.ContextLoaderListener
- org.springframework.web.context.ContextLoaderListener
- org.springframework.web.context.ContextLoaderListener
- org.springframework.web.context.ContextLoaderListener
- org.springframework.web.context.ContextLoaderListener
- org.springframework.web.context.ContextLoaderListener
- org.springframework.web.context.ContextLoaderListener
- org.springframework.web.context.ContextLoaderListener
- org.springframework.web.context.ContextLoaderListener
- winodw下的python在命令提示符中的环境变量的设置
- 分布式主键生成策略
- Fault Tolerance(FT)
- iOS 设计模式之装饰模式(Decorator)
- LDAP 协议解析以及环境搭建
- org.springframework.web.context.ContextLoaderListener
- 循环结构-7744问题
- C#与vb6 com组件的互相调用方法
- hdu5412
- 关于有偿提供拼图响应式后台的通知
- C语言enum枚举类型解析
- HashSet 与HashMap的遍历
- AndroidStudioTutorial_160217S001_简单UI
- springMVC session的应用@SessionAttributes和@ModelAttribute