Here is the exception I got in the log of Tuscany. Aug 15, 2011 10:17:09 AM org.apache.wink.server.internal.RequestProcessor handleRequest FINE: Processing GET request to http://localhost:8080/HelloWorldComponent/HelloWorld/sayHello?name=eranda, source content type is null, acceptable media types include text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Aug 15, 2011 10:17:09 AM org.apache.wink.server.internal.log.Requests logStartRequest FINE: Request URI is http://localhost:8080/HelloWorldComponent/HelloWorld/sayHello?name=eranda Aug 15, 2011 10:17:09 AM org.apache.wink.server.internal.log.Requests logStartRequest FINE: HTTP Headers are {Accept=[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8],Accept-Charset=[ISO-8859-1,utf-8;q=0.7,*;q=0.3],Accept-Encoding=[gzip,deflate,sdch],Accept-Language=[en-US,en;q=0.8],Cache-Control=[max-age=0],Connection=[keep-alive],Host=[localhost:8080],User-Agent=[Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.124 Safari/534.30]} Aug 15, 2011 10:17:09 AM org.apache.wink.server.internal.registry.ResourceRegistry filterDispatchMethods INFO: The system cannot find any method in the org.eranda.sca.GeneratedHelloWorldImpl class that consumes null media type. Verify that a method exists that consumes the media type specified. Aug 15, 2011 10:17:09 AM org.apache.wink.server.internal.log.ResourceInvocation logFinishRequest FINE: Resource invocation: -> org.eranda.sca.GeneratedHelloWorldImpl.(No matching method) Aug 15, 2011 10:17:09 AM org.apache.wink.server.internal.log.Requests logFinishRequest FINE: The request entity was not read from the HttpServletRequest.getInputStream(). Aug 15, 2011 10:17:09 AM org.apache.wink.server.internal.RequestProcessor logException FINE: The following error occurred during the invocation of the handlers chain: WebApplicationException (415 - Unsupported Media Type) with message 'null' while processing GET request sent to http://localhost:8080/HelloWorldComponent/HelloWorld/sayHello?name=eranda javax.ws.rs.WebApplicationException at org.apache.wink.server.internal.registry.ResourceRegistry.filterDispatchMethods(ResourceRegistry.java:475) at org.apache.wink.server.internal.registry.ResourceRegistry.findSubResourceMethod(ResourceRegistry.java:391) at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleSubResourceMethod(FindResourceMethodHandler.java:169) at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleRequest(FindResourceMethodHandler.java:110) at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26) at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22) at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63) at org.apache.wink.server.internal.handlers.FindRootResourceHandler.handleRequest(FindRootResourceHandler.java:95) at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26) at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22) at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63) at org.apache.wink.server.internal.handlers.HeadMethodHandler.handleRequest(HeadMethodHandler.java:53) at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26) at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22) at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63) at org.apache.wink.server.internal.handlers.OptionsMethodHandler.handleRequest(OptionsMethodHandler.java:46) at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26) at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22) at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63) at org.apache.wink.server.internal.handlers.SearchResultHandler.handleRequest(SearchResultHandler.java:33) at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26) at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22) at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63) at org.apache.wink.server.internal.log.ResourceInvocation.handleRequest(ResourceInvocation.java:92) at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26) at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22) at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63) at org.apache.wink.server.internal.log.Requests.handleRequest(Requests.java:76) at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26) at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22) at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63) at org.apache.wink.server.handlers.AbstractHandlersChain.run(AbstractHandlersChain.java:48) at org.apache.wink.server.internal.RequestProcessor.handleRequestWithoutFaultBarrier(RequestProcessor.java:207) at org.apache.wink.server.internal.RequestProcessor.handleRequest(RequestProcessor.java:154) at org.apache.wink.server.internal.servlet.RestServlet.service(RestServlet.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.apache.tuscany.sca.core.work.impl.Work.run(Work.java:63) at org.apache.tuscany.sca.core.work.impl.ThreadPoolWorkManager$DecoratingWork.run(ThreadPoolWorkManager.java:214) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Aug 15, 2011 10:17:09 AM org.apache.wink.server.internal.RequestProcessor logException FINE: Registered JAX-RS resources: Path: HelloWorldComponent/HelloWorld; ClassMetadata: Class: org.eranda.sca.GeneratedHelloWorldImpl Path: ; ClassMetadata: Class: org.apache.wink.server.internal.resources.HtmlServiceDocumentResource Aug 15, 2011 10:17:09 AM org.apache.wink.server.internal.RequestProcessor logException FINE: The following user-defined JAX-RS providers are registered: RawType: interface javax.ws.rs.ext.MessageBodyReader Data Map: MediaType key = multipart/* ObjectFactory Set value = { } MediaType key = text/csv ObjectFactory Set value = { } MediaType key = application/x-www-form-urlencoded ObjectFactory Set value = { } MediaType key = application/atom+xml ObjectFactory Set value = { } MediaType key = application/xml ObjectFactory Set value = { } MediaType key = application/javascript ObjectFactory Set value = { } MediaType key = application/octet-stream ObjectFactory Set value = { } MediaType key = */* ObjectFactory Set value = { class org.apache.tuscany.sca.binding.rest.provider.DataBindingJAXRSReader } MediaType key = application/json ObjectFactory Set value = { } MediaType key = text/xml ObjectFactory Set value = { }
RawType: interface javax.ws.rs.ext.MessageBodyWriter Data Map: MediaType key = multipart/* ObjectFactory Set value = { } MediaType key = text/html ObjectFactory Set value = { } MediaType key = text/csv ObjectFactory Set value = { } MediaType key = application/x-www-form-urlencoded ObjectFactory Set value = { } MediaType key = application/atom+xml ObjectFactory Set value = { } MediaType key = application/atomcat+xml ObjectFactory Set value = { } MediaType key = application/xml ObjectFactory Set value = { } MediaType key = application/octet-stream ObjectFactory Set value = { } MediaType key = text/xml ObjectFactory Set value = { } MediaType key = application/javascript ObjectFactory Set value = { } MediaType key = */* ObjectFactory Set value = { class org.apache.tuscany.sca.binding.rest.provider.DataBindingJAXRSWriter } MediaType key = application/json ObjectFactory Set value = { } RawType: interface javax.ws.rs.ext.ContextResolver Data Map: {empty} Aug 15, 2011 10:17:09 AM org.apache.wink.server.internal.log.Responses logFinishResponse FINE: An error occurred when handling the initial request/response, so wrote the entity and headers in the error response handlers chain. Aug 15, 2011 10:17:09 AM org.apache.wink.server.internal.log.Responses logFinishResponse FINE: There were no custom headers written on the response. Aug 15, 2011 10:17:09 AM org.apache.wink.server.internal.log.Responses logFinishResponse FINE: The response entity was not written to the HttpServletResponse.getOutputStream().