java - Getting Error MessageBodyWriter not found for media type=application/json -
i implementing small application rest webservice , want response in json formate. getting error on eclipse
console.
please me out.
org.glassfish.jersey.message.internal.writerinterceptorexecutor$terminalwriterinterceptor aroundwriteto severe: messagebodywriter not found media type=application/json, type=class book.test, generictype=class book.test.
all jar files :
i have added dependencies jar still getting same error.
thanks.
looks you're missing dependency: enabled pojomappingfeature
in settings need include jersey-media-moxy
or jersey-media-json-jackson
in dependencies. since beans have jaxb annotation guess you'll want both xml , json serialization, moxy choice.
Comments
Post a Comment