Implementing Rest Easy with Jetty
===

I am trying to implement Rest Easy Web services project and embed jetty server.

Jar Files i have used in this project

javassist-3.8.0.GA.jar
jetty-continuation-8.1.0.RC4.jar
jetty-http-8.1.0.RC4.jar
jetty-io-8.1.0.RC4.jar
jetty-security-8.1.0.RC4.jar
jetty-server-8.1.0.RC4.jar
jetty-servlet-8.1.0.RC4.jar
jetty-util-8.1.0.RC4.jar
jetty-webapp-8.1.4.v20120524.jar
jetty-xml-8.1.0.RC4.jar
scannotation-1.0.3.jar
servlet-api-3.0.jar
jsr311-api-1.1.1.jar
jackson-core-asl-1.9.3.jar
jackson-jaxrs-1.9.3.jar
jackson-mapper-asl-1.9.3.jar
resteasy-jaxrs-2.3.4.Final.jar


I am getting a exception when i am trying to return POJO.

Error 500 Could not find MessageBodyWriter for response object of type: webapp.Result of media type: application/json

Any suggestions on how to resolve this would be helpful.


Complete Stack Trace

2012-07-18 15:27:08.983:INFO:oejs.Server:jetty-8.1.0.RC4
2012-07-18 15:27:09.090:INFO:oejw.StandardDescriptorProcessor:NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet
2012-07-18 15:27:09.112:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext{/,file:/C:/Users/Swakesh/workspace/JettyWeb/src/webapp/}
2012-07-18 15:27:09.113:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext{/,file:/C:/Users/Swakesh/workspace/JettyWeb/src/webapp/}
Jul 18, 2012 3:27:09 PM org.jboss.resteasy.plugins.server.servlet.ConfigurationBootstrap 
WARNING: The use of javax.ws.rs.core.Application is deprecated, please use javax.ws.rs.Application as a context-param instead
Jul 18, 2012 3:27:09 PM org.jboss.resteasy.spi.ResteasyDeployment 
INFO: Deploying javax.ws.rs.core.Application: class webapp.MyApplicationConfig
2012-07-18 15:27:09.250:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext{/,file:/C:/Users/Swakesh/workspace/JettyWeb/src/webapp/}
2012-07-18 15:27:09.305:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:8080 STARTING
Jul 18, 2012 3:27:19 PM org.jboss.resteasy.core.SynchronousDispatcher 
SEVERE: Failed executing GET /result/22
org.jboss.resteasy.core.NoMessageBodyWriterFoundFailure: Could not find MessageBodyWriter for response object of type: webapp.Result of media type: application/json
	at org.jboss.resteasy.core.ServerResponse.writeTo(ServerResponse.java:216)
	at org.jboss.resteasy.core.SynchronousDispatcher.writeJaxrsResponse(SynchronousDispatcher.java:596)
	at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:517)
	at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:125)
	at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
	at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
	at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:575)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:485)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:233)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:412)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
	at org.eclipse.jetty.server.Server.handle(Server.java:351)
	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:451)
	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:916)
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:647)
	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:233)
	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:76)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:615)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:599)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:534)
	at java.lang.Thread.run(Thread.java:662)
 