Tomcat连HBase报错: HTTP Status 500 - java.lang.AbstractMethodError: javax.servlet.jsp.JspFactory.getJspApplicationContext

Tomcat中连接HBase数据库,启动的时候报错:

HTTP Status 500 - java.lang.AbstractMethodError: javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;

type Exception report

message java.lang.AbstractMethodError: javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;

description The server encountered an internal error that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: java.lang.AbstractMethodError: javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:273)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
root cause

java.lang.AbstractMethodError: javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;
	org.apache.jsp.index_jsp._jspInit(index_jsp.java:32)
	org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:80)
	org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:149)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.35 logs.
HTTP Status 500 - java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.CompilationResult.getProblems()[Lorg/eclipse/jdt/core/compiler/IProblem;

type Exception report

message java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.CompilationResult.getProblems()[Lorg/eclipse/jdt/core/compiler/IProblem;

description The server encountered an internal error that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.CompilationResult.getProblems()[Lorg/eclipse/jdt/core/compiler/IProblem;
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:400)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
root cause

java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.CompilationResult.getProblems()[Lorg/eclipse/jdt/core/compiler/IProblem;
	org.apache.jasper.compiler.JDTJavaCompiler$2.acceptResult(JDTJavaCompiler.java:442)
	org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:480)
	org.apache.jasper.compiler.JDTJavaCompiler.compile(JDTJavaCompiler.java:503)
	org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:368)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:437)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:608)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:360)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.35 logs.

学习了:

http://brandnewuser.iteye.com/blog/2208969

http://www.360doc.com/content/13/0523/15/1542811_287528175.shtml

http://blog.sina.com.cn/s/blog_456db24e0101j1lt.html

把lib中的jsp-2.1-6.1.14.jar,jsp-api-2.1-6.1.14.jar,servlet-api-2.5.jar,servlet-api-2.5-6.1.14.jar删除之后就好了;

当前lib中的包

activation-1.1.jar                                      aopalliance-1.0.jar
apacheds-i18n-2.0.0-M15.jar                             apacheds-kerberos-codec-2.0.0-M15.jar
api-asn1-api-1.0.0-M20.jar                              api-util-1.0.0-M20.jar
asm-3.1.jar                                             avro-1.7.4.jar
azure-keyvault-core-0.8.0.jar                           azure-storage-4.2.0.jar
bean-validator.jar                                      com.springsource.net.sf.cglib-2.2.0.jar
com.springsource.org.aopalliance-1.0.0.jar              com.springsource.org.aspectj.weaver-1.6.8.RELEASE.jar
commons-beanutils-1.7.0.jar                             commons-beanutils-1.8.2.jar
commons-beanutils-core-1.8.0.jar                        commons-cli-1.2.jar
commons-codec-1.9.jar                                   commons-collections-3.2.1.jar
commons-collections-3.2.2.jar                           commons-compress-1.4.1.jar
commons-configuration-1.6.jar                           commons-daemon-1.0.13.jar
commons-dbcp-1.4.jar                                    commons-digester-1.8.jar
commons-digester.jar                                    commons-el-1.0.jar
commons-fileupload-1.3.1.jar                            commons-io-2.2.jar
commons-io-2.4.jar                                      commons-lang-2.6.jar
commons-lang.jar                                        commons-lang3-3.4.jar
commons-logging-1.1.3.jar                               commons-logging-1.2.jar
commons-math-2.2.jar                                    commons-math3-3.1.1.jar
commons-net-3.1.jar                                     commons-pool-1.6.jar
curator-client-2.7.1.jar                                curator-framework-2.7.1.jar
curator-recipes-2.7.1.jar                               disruptor-3.3.0.jar
dwr.jar                                                 ezmorph-1.0.6.jar
fastjson-1.1.20.jar                                     findbugs-annotations-1.3.9-1.jar
groovy-all-1.5.5.jar                                    gson-2.2.4.jar
guava-12.0.1.jar                                        guice-3.0.jar
guice-servlet-3.0.jar                                   hadoop-annotations.jar
hadoop-auth.jar                                         hadoop-common.jar
hadoop-hdfs.jar                                         hbase-annotations-1.1.2.2.6.0.3-8-tests.jar
hbase-annotations-1.1.2.2.6.0.3-8.jar                   hbase-annotations.jar
hbase-client-1.1.2.2.6.0.3-8.jar                        hbase-client.jar
hbase-common-1.1.2.2.6.0.3-8-tests.jar                  hbase-common-1.1.2.2.6.0.3-8.jar
hbase-common.jar                                        hbase-examples-1.1.2.2.6.0.3-8.jar
hbase-examples.jar                                      hbase-hadoop-compat-1.1.2.2.6.0.3-8.jar
hbase-hadoop-compat.jar                                 hbase-hadoop2-compat-1.1.2.2.6.0.3-8.jar
hbase-hadoop2-compat.jar                                hbase-it-1.1.2.2.6.0.3-8-tests.jar
hbase-it-1.1.2.2.6.0.3-8.jar                            hbase-it.jar
hbase-prefix-tree-1.1.2.2.6.0.3-8.jar                   hbase-prefix-tree.jar
hbase-procedure-1.1.2.2.6.0.3-8.jar                     hbase-procedure.jar
hbase-protocol-1.1.2.2.6.0.3-8.jar                      hbase-protocol.jar
hbase-resource-bundle-1.1.2.2.6.0.3-8.jar               hbase-resource-bundle.jar
hbase-rest-1.1.2.2.6.0.3-8.jar                          hbase-rest.jar
hbase-rsgroup-1.1.2.2.6.0.3-8-tests.jar                 hbase-rsgroup-1.1.2.2.6.0.3-8.jar
hbase-rsgroup.jar                                       hbase-server-1.1.2.2.6.0.3-8-tests.jar
hbase-server-1.1.2.2.6.0.3-8.jar                        hbase-server.jar
hbase-shell-1.1.2.2.6.0.3-8.jar                         hbase-shell.jar
hbase-thrift-1.1.2.2.6.0.3-8.jar                        hbase-thrift.jar
htrace-core-3.1.0-incubating.jar                        iText-2.1.0.jar
iTextAsian.jar                                          iTextAsianCmaps.jar
jackson-annotations-2.2.3.jar                           jackson-annotations-2.5.0.jar
jackson-core-2.5.0.jar                                  jackson-core-2.6.0.jar
jackson-core-asl-1.9.13.jar                             jackson-databind-2.2.3.jar
jackson-databind-2.5.0.jar                              jackson-jaxrs-1.9.13.jar
jackson-mapper-asl-1.9.13.jar                           jackson-xc-1.9.13.jar
jamon-runtime-2.4.1.jar                                 jasperreports-3.5.3.jar
java-xmlbuilder-0.4.jar                                 javax.inject-1.jar
jaxb-api-2.2.2.jar                                      jaxb-impl-2.2.3-1.jar
jcip-annotations-1.0.jar                                jcodings-1.0.8.jar
jersey-client-1.9.jar                                   jersey-core-1.9.jar
jersey-guice-1.9.jar                                    jersey-json-1.9.jar
jersey-server-1.9.jar                                   jets3t-0.9.0.jar
jettison-1.3.3.jar                                      jetty-6.1.26.hwx.jar
jetty-sslengine-6.1.26.hwx.jar                          jetty-util-6.1.26.hwx.jar
jfreechart-1.0.12.jar                                   joni-2.1.2.jar
jruby-complete-1.6.8.jar                                jsch-0.1.54.jar
json-lib-2.2.2-jdk15.jar                                json-smart-1.1.1.jar
json.jar                                                jsp-api.jar
jsqlparser-0.9.5.jar                                    jsr305-1.3.9.jar
jstl-1.2.jar                                            junit-4.12.jar
jxl.jar                                                 leveldbjni-all-1.8.jar
libthrift-0.9.3.jar                                     log4j-1.2.17.jar
log4j-api-2.0.2.jar                                     log4j-core-2.0.2.jar
mail.jar                                                metrics-core-2.2.0.jar
mybatis-3.2.8.jar                                       mybatis-spring-1.2.2.jar
mysql-connector-java-5.1.41-bin.jar                     netty-3.2.4.Final.jar
netty-all-4.0.23.Final.jar                              nimbus-jose-jwt-3.9.jar
ojdbc6.jar                                              okhttp-2.4.0.jar
okhttp-3.4.1.jar                                        okio-1.4.0.jar
pagehelper-4.2.1.jar                                    paranamer-2.3.jar
phoenix-server.jar                                      poi-3.2.jar
protobuf-java-2.5.0.jar                                 ranger-hbase-plugin-shim-0.7.0.2.6.0.3-8.jar
ranger-plugin-classloader-0.7.0.2.6.0.3-8.jar           slf4j-api-1.7.7.jar
snappy-java-1.0.4.1.jar                                 spring-aop-4.1.6.RELEASE.jar
spring-aspects-4.1.6.RELEASE.jar                        spring-beans-4.1.6.RELEASE.jar
spring-context-4.1.6.RELEASE.jar                        spring-context-support-4.1.6.RELEASE.jar
spring-core-4.1.6.RELEASE.jar                           spring-expression-4.1.6.RELEASE.jar
spring-instrument-4.1.6.RELEASE.jar                     spring-instrument-tomcat-4.1.6.RELEASE.jar
spring-jdbc-4.1.6.RELEASE.jar                           spring-jms-4.1.6.RELEASE.jar
spring-messaging-4.1.6.RELEASE.jar                      spring-orm-4.1.6.RELEASE.jar
spring-oxm-4.1.6.RELEASE.jar                            spring-test-4.1.6.RELEASE.jar
spring-tx-4.1.6.RELEASE.jar                             spring-web-4.1.6.RELEASE.jar
spring-webmvc-4.1.6.RELEASE.jar                         spring-webmvc-portlet-4.1.6.RELEASE.jar
spring-websocket-4.1.6.RELEASE.jar                      spymemcached-2.11.6.jar
standard.jar                                            xercesImpl-2.9.1.jar
xml-apis-1.3.04.jar                                     xmlenc-0.52.jar
xz-1.0.jar                                              zookeeper.jar