• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error:"A message body writer for Java class ArrayList and MIME media type application/xml was not fo

 
Monica Shiralkar
Ranch Hand
Posts: 874
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting message "A message body writer for Java class java.util.ArrayList, and Java type class java.util.ArrayList, and MIME media type application/xml was not found"

The code which generates the above error message is :







If i return a string it works fine but returning an arrayList give message "A message body writer for Java class java.util.ArrayList, and Java type class java.util.ArrayList, and MIME media type application/xml was not found"

Please tell how I can get the above code to work.

thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!