JAX-RS Rückgabe eines Map<String,String>

Möchte ich eine Karte abrufen, von einem mit JAX-RS (text/xml)

@GET
public Map<String,String> getMap(){
}

aber ich erhalte den folgenden Fehler:

0000001e FlushResultHa E org.apache.wink.server.internal.handlers.FlushResultHandler handleResponse The system could not find a javax.ws.rs.ext.MessageBodyWriter or a DataSourceProvider class for the java.util.HashMap type and application/x-ms-application mediaType.  Ensure that a javax.ws.rs.ext.MessageBodyWriter exists in the JAX-RS application for the type and media type specified.
[10:43:52:885 IST 07/02/12] 0000001e RequestProces I org.apache.wink.server.internal.RequestProcessor logException The following error occurred during the invocation of the handlers chain: WebApplicationException (500 - Internal Server Error) with message 'null' while processing GET request sent to http://localhost:9080/jaxrs_module/echo/upload/getSiteNames
  • Das ist toll. Was ist das problem?
InformationsquelleAutor Muky | 2012-02-06
Schreibe einen Kommentar