I would start in the Jersey forums for this.
On 3/2/2014 5:04 PM, Florent THOMAS wrote:
> Hy everyone,
>
> I'm used to work with GF3.1.x and a .war application.
> Recently I've upgrade with GF4 and it's not working anymore.
> The problem seems to come from the configuration needed by the app :
> https://bitbucket.org/sdorra/scm-manager/wiki/applicationserver
>
> It's necessary to override the GF conf with
> bin/asadmin create-jvm-options -Dcom.sun.enterprise.overrideablejavaxpackages=javax.ws.rs,javax.ws.rs.core,javax.ws.rs.ext
>
> With or without this option, it's possible to install.
> But when restarting GF4 I have this issue :
> /[javax.enterprise.web] [tid: _ThreadID=58 _ThreadName=http-listener-1(3)] [timeMillis: 1393282939373] [levelValue: 900] [[
> StandardWrapperValve[default]: Servlet.service() for servlet default threw 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 com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:651)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
>
> /It looks like overriding the use of jersey (1.x for the app) is not compatible with the new 2.x embedded in GF/4.
>
> /Is there any workaround for this?
>
> regards