Thank you for your quick reply and help, so I have done the following:

1) I Added the ignoreNamespaces to the jsonProvider, and I have not seen
that error yet (except my other issue is causing it so I receive no response
at all...but it looks like this error is gone).
<bean id="jsonProvider"
class="org.apache.cxf.jaxrs.provider.json.JSONProvider">
        <property name="serializeAsArray" value="true" />
        <property name="ignoreNamespaces" value="true"/>
        <property name="produceMediaTypes" ref="jsonTypes" />
        <property name="consumeMediaTypes" ref="jsonTypes" />
</bean>

2) I still have this error:

java.lang.NoSuchMethodError:
javax.ws.rs.ServerErrorException.validate(Ljavax/ws/rs/core/Response;Ljavax/ws/rs/core/Response$Status$Family;)Ljavax/ws/rs/core/Response;
        at 
javax.ws.rs.ServerErrorException.<init>(ServerErrorException.java:101)
        at
javax.ws.rs.InternalServerErrorException.<init>(InternalServerErrorException.java:80)
        at
org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.handleWriteException(JAXRSOutInterceptor.java:385)
        at
org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.serializeMessage(JAXRSOutInterceptor.java:305)
        at
org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.processResponse(JAXRSOutInterceptor.java:154)
        Truncated. see log file for complete stacktrace

This happens regardless if geronimo-ws-metadata_2.0_spec-1.1.1.jar is on the
classpath for WLS or not.

I am using CXF 2.7.5, which pulls in:

<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
<version>2.0-m10</version>

Other than that, I don't see any specific jsr 311 API.  Unless this jar has
a conflict with WLS as well.

I used a blog project as an example to follow, but I updated to the latest
jars (this example is 2.2.12):
http://sushantworld.wordpress.com/2011/01/23/apache-cxf-restful-web-service/

Interesting thing is that this example works without issue on WLS.




--
View this message in context: 
http://cxf.547215.n5.nabble.com/JAX-RS-NoSuchMethodError-with-2-7-5-on-WebLogic-Server-tp5730032p5730096.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to