严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderLis

简介: 严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderLis

严重: 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:1928)
  at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1771)
  at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:536)
  at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:518)
  at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:148)
  at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5073)
  at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5680)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1702)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1692)
  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  at java.lang.Thread.run(Thread.java:748)

1.概述

之前正常启动的服务端程序,今天打开突然爆出这样的错误。从直观上来看是缺少Spring相关包,但是我删除maven下载的依赖包后,重新update还是有问题,肯定不是这个问题。

2.解决方法

(1)清楚缓存法

删除eclipse中所有的server,然后clean工程,再新建一个server。然后看看问题有没有解决。如果没有往下看。

(2)修改Deployment Assembly

1.1右击工程,选择属性,到Deployment Assembly页面,点击Add。

image.png

1.2选择Jave Build Path Entries

image.png

1.3将程序maven管理的依赖包加进去

image.png

1.4重启server

目录
相关文章
|
9月前
An error happened during template parsing (template: “ServletContext resource [/WEB-INF/templates/in
An error happened during template parsing (template: “ServletContext resource [/WEB-INF/templates/in
|
6天前
|
网络协议 Java Shell
java spring 项目若依框架启动失败,启动不了服务提示端口8080占用escription: Web server failed to start. Port 8080 was already in use. Action: Identify and stop the process that’s listening on port 8080 or configure this application to listen on another port-优雅草卓伊凡解决方案
java spring 项目若依框架启动失败,启动不了服务提示端口8080占用escription: Web server failed to start. Port 8080 was already in use. Action: Identify and stop the process that’s listening on port 8080 or configure this application to listen on another port-优雅草卓伊凡解决方案
30 7
|
6月前
【Azure 应用服务】Web App Service 中的 应用程序配置(Application Setting) 怎么获取key vault中的值
【Azure 应用服务】Web App Service 中的 应用程序配置(Application Setting) 怎么获取key vault中的值
|
网络安全
Caused by: org.springframework.web.client.ResourceAccessException: I/O error on POST request for "http://xxxx.svc.cluster.local:8080/xxxx": Connection reset; nested exception is java.net.SocketException: Connection reset 什么原因导致得
Caused by: org.springframework.web.client.ResourceAccessException: I/O error on POST request for "xxxx.svc.cluster.local:8080/xxxx ": Connection reset; nested exception is java.net.SocketException: Connection reset 什么原因导致得
2927 0
|
6月前
|
前端开发 JavaScript
【Azure 环境】前端Web通过Azure AD获取Token时发生跨域问题(CORS Error)
【Azure 环境】前端Web通过Azure AD获取Token时发生跨域问题(CORS Error)
|
8月前
|
安全 前端开发 Java
Java Web项目登录报Session Error
Java Web项目登录报Session Error
69 0
|
应用服务中间件
idea 调试报错 Illegal access: this web application instance has been stopped already.
idea 调试报错 Illegal access: this web application instance has been stopped already.
177 0
|
9月前
|
JavaScript 前端开发
【Web 前端】 jQuery 里的 ID 选择器和 class 选择器有何不同?
【5月更文挑战第1天】【Web 前端】 jQuery 里的 ID 选择器和 class 选择器有何不同?
|
8月前
|
XML Java 应用服务中间件
在Web Application中集成CAS登录模块
在Web Application中集成CAS登录模块
55 0
|
9月前
|
前端开发 图形学
Could you provide some examples of when Canvas or SVG would be the better choice for a web application?
Could you provide some examples of when Canvas or SVG would be the better choice for a web application

热门文章

最新文章