【Weblogic】java.lang.UnsupportedClassVersionError问题处理方案
开发人员对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重新构建应用,然后更新之后问题顺利处理。
附MOS原文
UnsupportedClassVersionError: Unable to set the activation state to true for the application (文档 ID 2132881.1) | 转到底部 |
In this Document GoalSolutionAPPLIES 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. ####
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. |
本文题目:【Weblogic】java.lang.UnsupportedClassVersionError问题处理方案
分享地址:http://azwzsj.com/article/igegds.html