1.SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
答案1:解决方案:
其实是你的jar文件没有同步发布到自己项目的lib目录中。
全局项目clean 之后,全局项目install
2.tomcat启动报错:Unable to complete the scan for annotations for web application [] due to a StackOverflow
Caused by: java.lang.IllegalStateException: Unable to complete the scan for annotations for web application [] due to a StackOverflowError. Possible
root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies. The class hierarchy being processed was
[org.bouncycastle.asn1.ASN1Boolean->org.bouncycastle.asn1.DERBoolean->org.bouncycastle.asn1.ASN1Boolean]
上面说的可能两个原因。1是-Xss太小了 ;2是两个包冲突了。具体怎么解决看自己。
本文解析了两种常见的Tomcat启动错误:配置应用监听器时的ClassNotFoundException及扫描web应用注解时的StackOverflowError。提供了清洁并重新安装项目,调整-Xss参数及解决包冲突的方法。

9909

被折叠的 条评论
为什么被折叠?



