Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

could not find writer for content-type application/xml type:

 
Elangovan Shanmugam
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am trying to develop client side code for my RestEasy RESTful web service. When I am trying to create a (POST) request with my complex xml type, I am getting the following error. Could you please throw some tips why would this happen? or What am I doing wrong.



I did check the generated DTO (JAXB) object, and it does have the @XMLRootElement and other annotations.

Thanks
Elangovan S
 
Elangovan Shanmugam
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I resolved this a while back and thought post the answer to this thread as well.

Solution: Just add the jaxb-provider dependency to the client project, something like as follows. Even though this is not required for compile time, this is needed for the run-time, in the above situation.


Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic