Getting com.sun.jersey.api.MessageException in restful webservices application
<p>My code looks like this.</p>

<pre><code>@Produces(MediaType.TEXT_XML)
public Response getEmpDetails() {

    Map&lt;String, Employee&gt; result = empDaoo.getEmpInfo();

    return Response.status(200).entity(result).build();
}
</code></pre>

<p>Then I am getting this exception:</p>

<pre><code>SEVERE: Mapped exception to response: 500 (Internal Server Error)
javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException: A message body writer for Java class java.util.HashMap, and Java type class java.util.HashMap, and MIME media type text/xml was not found
</code></pre>

<p>Can any one provide the solution plz.
Quick response plz...</p>
