java异常参考:java.lang.UnsupportedClassVersionError

发表于: java/j2ee | 作者: | 日期: 2009/11/23 08:11

将吉林的公告便签程序拿到黑龙江来部署时遇到的一个问题。公告便签程序是一个简单的J2EE程序,没想到部署时遇到了如下一长串的异常:


Exception:weblogic.management.ApplicationException: start() failed. Module: WebContent Error: weblogic.management.DeploymentException: Error creating bean with name ‘sqlMapClientA’ defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Error occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath ‘/sqlMapConfig/sqlMap’. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath ‘/sqlMap/resultMap’. Cause: java.lang.RuntimeException: Error configuring Result. Could not set ResultClass. Cause: java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for: ‘com.xxx.crm.cmd.notices.dto.Discuss’ – with nested exception: [java.lang.UnsupportedClassVersionError: com/xxx/crm/cmd/notices/dto/Discuss (Unsupported major.minor version 50.0)]

从日志中可以发现问题的关键点:java.lang.UnsupportedClassVersionError

问了一下给我源程序的哥们,原来他是用JDK1.6编译的源程序。不过我这边Weblogic的使用的JDK版本为1.4。恩,这就是异常产生的原因。

用JDK1.4编译源程序,重新上传到服务器,再次部署成功。

附:在myEclipse中改变编译器的方法:Project->Properties->Java Compiler->Configure Workspace Setting,在弹出的页面中可以进行设置。

参考文章:http://www.blogjava.net/amigoxie/archive/2008/06/13/155162.html

: https://blog.darkmi.com/2009/11/23/988.html

本文相关评论 - 1条评论都没有呢
Post a comment now » 本文目前不可评论

No comments yet.

Sorry, the comment form is closed at this time.