1、jetty8.x啓動項目時出現如下異常,
2016-11-03 08:52:54.324:INFO:oejs.Server:jetty-8.1.14.v20131031
2016-11-03 08:52:55.041:WARN:oeja.AnnotationParser:EXCEPTION
java.lang.ArrayIndexOutOfBoundsException: 15145
at org.objectweb.asm.ClassReader.readClass(Unknown Source)
at org.objectweb.asm.ClassReader.accept(Unknown Source)
at org.objectweb.asm.ClassReader.accept(Unknown Source)
at org.eclipse.jetty.annotations.AnnotationParser.scanClass(AnnotationParser.java:899)
at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:755)
at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:744)
at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:744)
at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:744)
at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:744)
解決辦法、設計jetty至9.X,升級方法如下,
首先我的jetty是通過ecplise的markets安裝的
默認使用的是Server:jetty-8.1.14.v20131031 ,現在將其升級至9.X
官網下載最新版本的jetty(http://www.eclipse.org/jetty/download.html),下載後解壓、在此配置ecplise
用jetty9.3.x重新啓動項目,解決!