On 28/06/13 18:39, jaybytez wrote:
Interesting thing is that I took the working ReST example from that blog post
and just updated the version to 2.7.5 and added the
cxf-rt-rs-extension-providers and it broke this example:

<dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-frontend-jaxrs</artifactId>
        <version>2.7.5</version>
        <type>jar</type>
        <scope>compile</scope>
</dependency>
<dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-rs-extension-providers</artifactId>
        <version>2.7.5</version>
        <type>jar</type>
        <scope>compile</scope>
</dependency>

It now produces the same 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:154fxteljwkzlnxkcng)
        Truncated. see log file for complete stacktrace

If I remove cxf-rt-rs-extension-providers and revert the cxf version, it
works.
IMHO there is only one explanation, somewhere you have a mix up of APIs, you can have a look at the 2.0 m10 source (at Central for example) and confirm this method exists (I think it is a static method in WebApplicationException class as far as I recall)

Cheers, Sergey





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



--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com

Reply via email to