WARN:oejw.WebAppContext:Failed startup of context o.m.j.p.JettyWebAppContext……

今天在啓動項目的時候控制端一直報錯,報錯如下
報錯內容

WARN:oejw.WebAppContext:Failed startup of context o.m.j.p.JettyWebAppContext {/web,file:/E:/mycode/web_advancement/src/main/webapp/}, file:/E:/mycode/web_advancement/src/main/webapp/org.apache.commons.logging.LogConfigurationException: java.lang.IllegalAccessError: class sun.reflect.GeneratedConstructorAccessor32 cannot access its superclass sun.reflect.ConstructorAccessorImpl (Caused by java.lang.IllegalAccessError: class sun.reflect.Gen……

問題原因
Jetty-servier的版本與jetty-webapp的版本的問題

解決問題
找到系統 的pom.xml
然後把定義的jetty的內容修改一下
在這裏插入圖片描述

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