Phoenix整合SpringMVC报错

1.错误如下:

严重: Servlet [SpringMVCServlet] in web application [/galaxy-report-business] threw load() exception
java.lang.AbstractMethodError: javax.ws.rs.core.UriBuilder.uri(Ljava/lang/String;)Ljavax/ws/rs/core/UriBuilder;
 at javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java:119)
 at org.glassfish.jersey.client.JerseyWebTarget.(JerseyWebTarget.java:71)
 at org.glassfish.jersey.client.JerseyClient.target(JerseyClient.java:290)
 at org.glassfish.jersey.client.JerseyClient.target(JerseyClient.java:76)

2.原因:jersey相关jar包冲突

3.解决办法


   org.apache.phoenix
   phoenix-queryserver-client
   4.9.0-HBase-1.2
   
       
           tomcat
           jasper-compiler
       
       
           tomcat
           jasper-runtime
       
       
           com.sun.jersey
           jersey-core
       
       
           com.sun.jersey
           jersey-json
       
       
           com.sun.jersey
           jersey-server
       
   

参考:https://stackoverflow.com/questions/29037111/apache-jersey-post-not-working-when-posting-json

你可能感兴趣的:(大数据)