users@jersey.java.net

Using Jersey 1.x for JAX-RS along CXF 2.1.x for JAX-WS

From: <ROBERTOJIMENOCA_at_terra.es>
Date: Tue, 17 Mar 2009 11:23:41 +0100 (MET)

I already have an application using Jersey 1.x for JAX-RS but I want to use CXF 2.1.x for JAX-WS but when I include CXF Jersey seems to try to use CXF providers and gives these errors.
Are any of you guys using CXF with Jersey?

2009-03-16 18:01:14 com.sun.jersey.api.core.ClasspathResourceConfig init
INFO: Provider classes found:
  class org.apache.cxf.jaxrs.provider.AtomFeedProvider
  class org.apache.cxf.jaxrs.provider.AegisElementProvider
  class org.apache.cxf.jaxrs.provider.JAXBElementProvider
  class org.apache.cxf.jaxrs.provider.ActivationProvider
  class org.apache.cxf.jaxrs.provider.SourceProvider
  class org.apache.cxf.jaxrs.provider.XMLBeansJSONProvider
  class org.apache.cxf.jaxrs.impl.PathSegmentImpl
  class org.apache.cxf.jaxrs.provider.XMLBeansElementProvider
  class org.apache.cxf.jaxrs.provider.StringProvider
  class org.apache.cxf.jaxrs.provider.AtomEntryProvider
  class org.apache.cxf.jaxrs.provider.JSONProvider
  class org.apache.cxf.jaxrs.provider.FormEncodingReaderProvider

...

2009-03-16 18:26:50 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet Jersey Web Application threw exception
java.lang.AbstractMethodError: javax.ws.rs.core.UriBuilder.replacePath(Ljava/lang/String;)Ljavax/ws/rs/core/UriBuilder;
        at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:302)
        at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:239)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:636)



Ahora también puedes acceder a tu correo Terra desde el móvil.
Infórmate pinchando aquí.