编辑${catalina.home}/conf目录下的catalina.properties
修改common.loader项
原:
common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar
添加 ,/home/myhbase/hbase/lib,/home/myhbase/hbase/lib/*.jar
为:
common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar,/home/myhbase/hbase/lib,/home/myhbase/hbase/lib/*.jar
重启Tomcat
service tomcat stop
service tomcat start