【记录】java.lang.NoSuchMethodError: org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(Ljava/lang/String;Ljava/io/InputStream;Z)Lorg/apache/jasper/xmlparser/TreeNode;
报错如图:
依赖有
<dependency> <groupId>org.apache.hive</groupId> <artifactId>hive-jdbc</artifactId> <version>2.1.1-cdh6.3.1</version> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <scope>provided</scope> </dependency>
解决:去掉hive-jdbc中的jasper-compiler
<dependency> <groupId>org.apache.hive</groupId> <artifactId>hive-jdbc</artifactId> <version>2.1.1-cdh6.3.1</version> <exclusions> <exclusion> <artifactId>jasper-compiler</artifactId> <groupId>tomcat</groupId> </exclusion> </exclusions> </dependency>