2015-11-02 11 views
0

我从https://dev.mysql.com/downloads/connector/j/下载了最新的MySQL连接器mysql-connector-java-5.1.37.zip。带MySQL连接器的Tomcat 7:ASM ClassReader无法解析类文件

Tomcat正在抛出“ASM ClassReader无法解析类文件 - 可能是d e到尚未支持的新Java类文件版本:[]”,而启动我的web应用程序。我试着用JDK 7和8运行。搜索结果表明,如果jar是为JDK 8构建的,而不是在JDK 7编译级别构建的,则可能会发生错误。

Java 1.8 ASM ClassReader failed to parse class file - probably due to a new Java class file version that isn't supported yet

是否有另一个MySQL连接器罐子,我应该使用?其他解决方法? (web应用程序也使用了Spring 3.2.4)

C:/servers/apache-tomcat-7.0.65/lib/mysql-connector-java-5.1.37-bin.jar!/com/mysql/jdbc/JDBC42CallableStatement.class]; 
nested exception is org.springframework.core.NestedIOException: ASM ClassReader failed to parse class file - probably d 
e to a new Java class file version that isn't supported yet: URL [jar:file:/C:/servers/apache-tomcat-7.0.65/lib/mysql-c 
nnector-java-5.1.37-bin.jar!/com/mysql/jdbc/JDBC42CallableStatement.class]; nested exception is java.lang.IllegalArgume 
tException 
     at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(Cl 
ssPathScanningCandidateComponentProvider.java:290) 

回答

相关问题