部署耳朵時,當我的weblogic管理員控制檯上部署我ear
文件,我碰到下面的錯誤 -越來越ClassNotFound的異常在WebLogic
javax.servlet.ServletException: [HTTP:101249][[email protected][app:CorporateActionDatabaseEAR-0 module:/CorporateActionDatabaseWAR path:/CorporateActionDatabaseWAR spec-version:null]]: Servlet class org.glassfish.jersey.servlet.ServletContainer for servlet Jersey Web Application could not be loaded because the requested class was not found in the classpath . java.lang.UnsupportedClassVersionError: org/glassfish/jersey/servlet/ServletContainer : unsupported classversion 51.0.
任何想法,爲什麼發生這種情況?我知道它與添加jersey-container-servlet-core jar有關,但是我添加了哪個模塊?我的war
模塊或我的jar
模塊或我的ear
模塊?請注意,這是一個maven web項目,我已經從中獲得了ear
文件。
我的Java版本是1.7
,我已經嘗試添加jersey-core-1.17.1
和jersey-servlet-1.17.1
到war
模塊的構建路徑,但我似乎仍然得到同樣的錯誤。
非常感謝!
http://stackoverflow.com/questions/22022114/org-glassfish-jersey-servlet-servletcontainer-classnotfoundexception – andrucz