Tomcat啓動報錯記錄與千里追蹤[持續記錄]

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是兩個包衝突了。具體怎麼解決看自己。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章