Marc loos
Marc loos

Reputation: 1

Bluemix Jersey 1.8 415 media error

In using bleumix liberty with jax-rs1.1 ( inclusive jersey 1.8) But I get 415 errors media not supported when I use it.

It works on tomcat, but bluemix liberty gives an error.

Any thoughts

Regards Marc

Upvotes: 0

Views: 128

Answers (1)

Ram Vennam
Ram Vennam

Reputation: 3546

Liberty jax-rs 1.1 based on Apache Wink, not Jersey. Is your jax-rs implementation using wink? Verify you are providing a wink implementation. Also, remove all the wink jars from your war to avoid conflicts and use what's provided by Liberty. You can either remove them manually from the war WEB-INF/lib, or change your pom.xml and add <scope>provided</scope> for the wink dependencies so that they are not packaged with the war. If you want to use Jersey instead, you will have to disable jax-rs 1.1 by providing a customized server.xml feature set.

The Liberty for Java starter application shows a basic implementation example in src/com/ibm/cloudoe/samples/HelloResource

Upvotes: 1

Related Questions