球衣2:java.lang.AbstractMethodError:javax.ws.rs.core.UriBuilder.uri

时间:2019-07-09 09:16:54

标签: java web-services jax-rs jboss7.x jersey-2.0

我知道这个问题已经被问了很多,但就我而言,似乎我没有任何球衣2引起jax-rs冲突。我使用球衣2.25.1,并且在我的jBoss 7.2中将jax-rs-api 1.1替换为2.0。不过,在我的日志中:

12:05:26,071错误[org.apache.catalina.core.ContainerBase。[jboss.web]。[默认主机]。[/ XXXWebServices]。[Jersey REST服务测试]](http-localhost / 127.0 .0.1:8080-1)JBWEB000236:Servlet Jersey REST服务测试的Servlet.service()抛出异常:java.lang.AbstractMethodError:javax.ws.rs.core.UriBuilder.uri(Ljava / lang / String;)Ljavax / ws / rs / core / UriBuilder;     在javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java:119)[ jboss-jaxrs-api_2.0 _spec-1.0.0.Final.jar:1.0.0.Final]     在org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:298)[ jersey-container-servlet-core-2.25.1 .jar:]     在org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)上[jersey-container-servlet-core-2.25.1.jar:]     在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)[jbossweb-7.2.0.Final.jar:7.2.0.Final]     在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)[jbossweb-7.2.0.Final.jar:7.2.0.Final]

0 个答案:

没有答案