IDEA用Maven的Spring集成的Tomcat启动后报错
六月 04, 2020 4:57:47 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-9101"]
六月 04, 2020 4:57:47 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Tomcat
六月 04, 2020 4:57:47 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.47
六月 04, 2020 4:57:48 下午 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
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
    at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532)
    at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514)
    at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:142)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4854)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
    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)

六月 04, 2020 4:57:48 下午 org.apache.catalina.core.StandardContext listenerStart
严重: Skipped installing application listeners due to previous error(s)
六月 04, 2020 4:57:48 下午 org.apache.catalina.core.StandardContext startInternal
严重: Error listenerStart
六月 04, 2020 4:57:48 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [] startup failed due to previous errors
六月 04, 2020 4:57:48 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-9101"]

从maven-Plugins-tomcat7-tomcat7:run启动的
IDEA2020.1
maven3.5.2
jdk1.8
IDEA右键没有 properties图片说明
求大佬帮助

1个回答

项目启动是报错:
org.springframework.web.context.ContextLoaderListener

解决方法:

右键单击工程项目 ->点击 properties
选择 Deployment Assembly
点击 Add -> Java Build Path Entries -> Next
选择 Maven Dependencies -> Finish -> Apply -> OK
Clean project and server. 重启server

weixin_48135941
gd_y 右键没有 properties
5 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐