您好,登錄后才能下訂單哦!
開發人員對Java程序版本更新之后,重啟Weblogic,發現java.lang.UnsupportedClassVersionError Unsupported major.minor version 51.0錯誤,主要錯誤信息如下:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pageCond': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.bocom.jump.bp.service.sqlmap.SqlMap com.bocom.training.jump.common.dao.BaseDao.sqlMap; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.bocom.feps.webservices.accounting.service.impl.QueryUniqueCodeServiceImpl] for bean with name 'queryUniqueCodeService' defined in class path resource [config/webservice-beans.xml]; nested exception is java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for: 'com.bocom.feps.webservices.accounting.service.impl.QueryUniqueCodeServiceImpl' …… Caused By: org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.bocom.jump.bp.service.sqlmap.SqlMap com.bocom.training.jump.common.dao.BaseDao.sqlMap; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.bocom.feps.webservices.accounting.service.impl.QueryUniqueCodeServiceImpl] for bean with name 'queryUniqueCodeService' defined in class path resource [config/webservice-beans.xml]; nested exception is java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for: 'com.bocom.feps.webservices.accounting.service.impl.QueryUniqueCodeServiceImpl' …… Caused By: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.bocom.feps.webservices.accounting.service.impl.QueryUniqueCodeServiceImpl] for bean with name 'queryUniqueCodeService' defined in class path resource [config/webservice-beans.xml]; nested exception is java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for: 'com.bocom.feps.webservices.accounting.service.impl.QueryUniqueCodeServiceImpl' …… Caused By: java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for: 'com.bocom.feps.webservices.accounting.service.impl.QueryUniqueCodeServiceImpl' …… Caused By: java.lang.UnsupportedClassVersionError: com/bocom/feps/webservices/accounting/service/impl/QueryUniqueCodeServiceImpl : Unsupported major.minor version 51.0 ……
經過查詢MOS發現,該問題屬于JDK沖突問題, 應用程序是使用JDK構建的,Weblogic環境中安裝的JDK不支持該應用程序。 為避免異常,需要使用正確的JDK版本構建應用程序。
經與開發人員溝通,開發人員使用Weblogic環境中對應版本的JDK重新構建應用,然后更新之后問題順利處理。
UnsupportedClassVersionError: Unable to set the activation state to true for the application (文檔 ID 2132881.1) | 轉到底部 |
In this Document
APPLIES TO:Oracle WebLogic Server - Version 11.1.1.5.0 and laterInformation in this document applies to any platform. GOALUnsupportedClassVersionError exception when deploying new application on Weblogic server.
####<Feb 11, 2016 10:15:04 AM EST> <Error> <HTTP> <******> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1455203704171> <BEA-101165> <Could not load user defined filter in web.xml: ServletContext@6640065[app:*****_war module:******.war path:/****** spec-version:2.5] info.***.webapp.filters.PathFilter.
SOLUTIONThis is a JDK conflict issue. The application is built with JDK that is not supported by the JDK installed in the Weblogic environment. To avoid the exception, please build your application with correct JDK version.
|
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。