Getting Error scanning file when running jetty 9 on java 8 using the maven jetty plugin [duplicate]

家住魔仙堡 提交于 2019-12-04 03:48:28

To make this work, you have to add ASM 5 to the dependencies of the jetty-maven-plugin for the time being

<plugin>
    <groupId>org.eclipse.jetty</groupId>
    <artifactId>jetty-maven-plugin</artifactId>
    <dependencies>
        <dependency>
            <groupId>org.ow2.asm</groupId>
            <artifactId>asm</artifactId>
            <version>5.0.2</version>
        </dependency>
        <dependency>
            <groupId>org.ow2.asm</groupId>
            <artifactId>asm-commons</artifactId>
            <version>5.0.2</version>
        </dependency>
    </dependencies>
</plugin>

check this

http://vaskoz.wordpress.com/2013/12/18/fix-jetty-9-1-for-jdk8-annotations/

Jetty 9.1.0 comes bundled with ASM 4.1 but running with bytecode level 1.8 and annotations causes the following error: java.lang.RuntimeException: Error scanning file PingController.class at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:705)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!