org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan(Lorg/apache/tomcat/Jar;Ljava/lang/String;Z)V 问题解决方法

求知探索 1年前 ⋅ 1297 阅读

SpringBoot项目启动时报:

Caused by: java.lang.AbstractMethodError: org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan(Lorg/apache/tomcat/Jar;Ljava/lang/String;Z)V
        at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:387)
        at org.apache.tomcat.util.scan.StandardJarScanner.processURLs(StandardJarScanner.java:318)
        at org.apache.tomcat.util.scan.StandardJarScanner.doScanClassPath(StandardJarScanner.java:270)
        at org.apache.jasper.servlet.TldScanner.scan(TldScanner.java:106)
        at org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializer.java:103)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5219)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        ... 40 common frames omitted

是因为hive-jdbc中的jetty-runner包与tomcat包冲突,在pom.xml文件排除掉即可,如下:

<dependency>
    <groupId>org.apache.hive</groupId>
    <artifactId>hive-jdbc</artifactId>
    <version>3.0.0</version>
    <exclusions>
        <exclusion>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-runner</artifactId>
        </exclusion>
    </exclusions>
</dependency>

全部评论: 0

    我有话说: