Hi,
As the title suggests I wanted to know if HCP supports CXF 3.0? Specifically JAX-RS 2.0 APIs (javax.ws.rs-api:2.0).
I have an application with CXF 3.0 and when I deploy it locally it works, but on cloud I get the error:
Servlet.service() for servlet [RESTServices] in context with path [] threw exception [Servlet execution threw an exception] with root causejava.lang.NoSuchMethodError: javax.ws.rs.core.HttpHeaders.getHeaderString(Ljava/lang/String;)Ljava/lang/String; at org.apache.cxf.jaxrs.impl.RequestPreprocessor.handleMethod(RequestPreprocessor.java:150) at org.apache.cxf.jaxrs.impl.RequestPreprocessor.preprocess(RequestPreprocessor.java:77) ........
Also, I am using websockets using the Atmosphere framework with Jersey APIs and that throws another error and fails to start:
Failed to initialize Atmosphere Frameworkcom.sun.jersey.core.spi.scanning.ScannerException: The URI scheme bundleentry of the URI bundleentry://310.fwk41772675/WEB-INF/classes/com/example/wsock/MessageHandler.class is not supported. Package scanning deployment is not supported for such URIs. Try using a different deployment mechanism such as explicitly declaring root resource and provider classes using an extension of javax.ws.rs.core.Application at com.sun.jersey.core.spi.scanning.PackageNamesScanner.scan(PackageNamesScanner.java:228) at com.sun.jersey.core.spi.scanning.PackageNamesScanner.scan(PackageNamesScanner.java:142) at com.sun.jersey.api.core.ScanningResourceConfig.init(ScanningResourceConfig.java:80) ...
Using the sdk version - neo-sdk-javaee6-2.36.1.
Any ideas why this would happen?
Regards,
Bhuvan