Error creating bean with name 'JPAToolDAO': Injection of persistence methods failed; nested exceptio
2016-07-04 11:37
585 查看
eclipse部署重启报错:
Error creating bean with name 'JPAToolDAO': Injection of persistence methods failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.haiyisoft.analysis.homepage.service.impl.AlHomePageServiceImpl]
for bean with name 'alHomePageService' defined in file [D:\uepstudio\jboss-4.2.3.GA\server\default\deploy\jndsjypfx.war\WEB-INF\classes\com\haiyisoft\analysis\homepage\service\impl\AlHomePageServiceImpl.class]: problem with class file or dependent class; nested
exception is java.lang.UnsupportedClassVersionError: com/haiyisoft/analysis/homepage/service/impl/AlHomePageServiceImpl : Unsupported major.minor version 51.0
解决方案:
最后提示是 version 版本的问题,也就是说 jdk 1.6的程序,用的1.7编译的,所有更改一下jdk编译版本就行。
项目右键--->properties --->Java Compiler--->改成 1.6 就可以。
Error creating bean with name 'JPAToolDAO': Injection of persistence methods failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.haiyisoft.analysis.homepage.service.impl.AlHomePageServiceImpl]
for bean with name 'alHomePageService' defined in file [D:\uepstudio\jboss-4.2.3.GA\server\default\deploy\jndsjypfx.war\WEB-INF\classes\com\haiyisoft\analysis\homepage\service\impl\AlHomePageServiceImpl.class]: problem with class file or dependent class; nested
exception is java.lang.UnsupportedClassVersionError: com/haiyisoft/analysis/homepage/service/impl/AlHomePageServiceImpl : Unsupported major.minor version 51.0
解决方案:
最后提示是 version 版本的问题,也就是说 jdk 1.6的程序,用的1.7编译的,所有更改一下jdk编译版本就行。
项目右键--->properties --->Java Compiler--->改成 1.6 就可以。
相关文章推荐
- 构建你的独家TensorFlow模型
- 添加@ControllerAdvice后报错 Failed to invoke @ExceptionHandler method
- Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or director
- 谷歌人工智能系统TensorFlow开始支持iOS
- mybaits中后台接收前台提交的数据解析
- 一个由于临时文件引起的异常 tmpFile.renameTo(classFile) failed
- 麻将人工智能研究目标和人员要求
- Linq-Contains查询
- http://blog.csdn.net/congcong68/article/details/39252897
- Failed to prepare TableSyncChunk plugin: Cannot chunk table `ccda`.`pending_0` using the character c
- 利用SSKeychain缓存用户及账号密码
- ssh client 报 algorithm negotiation failed的解决方法
- Memory Analyzer tool(MAT)分析内存泄漏
- postfix mail.cf文件中的部分配置详解
- POJ3714 Raid
- HDU 1022 Train Problem I(栈)
- http://jingyan.baidu.com/article/bad08e1ee14ae409c85121cf.html
- 人工智能或许把人类引入灾难的深渊?
- poj3714 Raid
- Poj 1273 Drainage Ditches【最大流入门题----Ford-Fulkerson】