Forums Register Login

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

+Pie Number of slices to send: Send
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.
Why fit in when you were born to stand out? - Seuss. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 2399 times.
Similar Threads
Problem applying Generics
Unable to produce JSON response for an arraylist contaning java beans
REST WS code gives error when returning ArrayList from method
rest webservice response problem when returning list
jetty org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR)
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 21:47:50.