When I use h2 1.4.197(latest version) with jetty.

WARN:oejw.WebAppContext:main: Failed startup of context 
o.e.j.w.WebAppContext@yyyy{/xxxx,file:///tmp/jetty-0.0.0.0-8080-xxxx.war-_xxxx-any-yyyy.dir/webapp/,UNAVAILABLE}{/xxxx.war}
java.lang.RuntimeException: Error scanning entry 
META-INF/versions/9/org/h2/util/Bits.class from jar 
file:///tmp/jetty-0.0.0.0-8080-xxxx.war-_xxxx-any-yyyy.dir/webapp/WEB-INF/lib/h2-1.4.197.jar
    at 
org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:891)
    at 
org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:837)
    at 
org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:159)
    at 
org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:462)
    at 
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:673)
    at 
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:591)
    at java.lang.Thread.run(Thread.java:748)
Caused by: 
java.lang.IllegalArgumentException
    at org.objectweb.asm.ClassReader.<init>(Unknown Source)
    at org.objectweb.asm.ClassReader.<init>(Unknown Source)
    at org.objectweb.asm.ClassReader.<init>(Unknown Source)
    at 
org.eclipse.jetty.annotations.AnnotationParser.scanClass(AnnotationParser.java:959)
    at 
org.eclipse.jetty.annotations.AnnotationParser.parseJarEntry(AnnotationParser.java:940)
    at 
org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:887)
    at 
org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:837)
    at 
org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:159)
    at 
org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:462)
    at 
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:673)
    at 
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:591)
    at java.lang.Thread.run(Thread.java:748)

It seems that h2 uses jdk9 , but I guess use jdk 8  defaultly should be 
more adorable?

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to