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. 

enter image description here

enter image description here

web.xml file : enter image description here

all jar files :

enter image description here

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

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -