aspose file tools*
The moose likes Web Services and the fly likes Exception While running spring Restful Webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Exception While running spring Restful Webservice" Watch "Exception While running spring Restful Webservice" New topic
Author

Exception While running spring Restful Webservice

sreenivas vemula
Ranch Hand

Joined: Jan 21, 2012
Posts: 44
Hi ,
I am getting following RuntimeException while running the Spring Restful Webservice. I am using Jersey framework.

java.lang.IncompatibleClassChangeError: Class javax.ws.rs.core.Response$Status does not implement the requested interface javax.ws.rs.core.Response$StatusType
at com.sun.jersey.spi.container.ContainerResponse.getStatus(ContainerResponse.java:558)
at com.sun.jersey.spi.container.ContainerResponse$CommittingOutputStream.commitWrite(ContainerResponse.java:156)
at com.sun.jersey.spi.container.ContainerResponse$CommittingOutputStream.write(ContainerResponse.java:133)
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)
at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:272)
at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:276)
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:122)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:212)
at java.io.BufferedWriter.flush(BufferedWriter.java:236)

Please let me know what could be the issue.

Thanks in Advance.

Regards,
sreeni.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Exception While running spring Restful Webservice
 
Similar Threads
Need help for writing webservice
Need Help for developing webservices using SPRING Restful API
need any changes to WebService from server to server to run sucessfully.
com.sun.jersey.api.client.UniformInterfaceException:while running Restful Webservice client
Publishing web service using Spring 3