Hopefully a simple error.
I have a simple prototype Restlet application which I am using to put together the process. When run using the local test-cradle on port 8182 the application works fine. When a WAR is created and deployed to Tomcat I receive: 17-Dec-2013 08:44:10.059 WARNING [http-apr-8080-exec-7] org.restlet.service.Conv erterService.toRepresentation Unable to find a converter for this object : com.e ricsson.skillinventory.Resource@287cf889 The object is serialized (for completeness), but at this time I am not attempting to return this from the resource, I am returning a simple String object. Do I need to register a Jackson converter even though it is not returned? My resource code is as simple as: @Get public String getResource() { Engine.setLogLevel(Level.FINE); Form queryParams = getQuery(); String resourceId = queryParams.getFirstValue("resourceId"); System.out.println("Resource is " + resourceId); Resource resource = new Resource(); resource.setResourceName("John Smith"); return "howdy folks (" + resourceId + ")"; } Thanks in advance ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3070436 |
Hello Steven, My first thought is that the war is missing the org.restlet.ext.jackson extension (in the "WEB-INF/lib" subdirectory), and perhaps its dependencies.
I've made a test using the internal eclipse servlet container, and it works for me. Best regards, Thierry Boileau 2013/12/17 Steven Parks <[hidden email]> Hopefully a simple error. |
Thanks, I added the ext-json JAR file but not the Jackson JAR file to my deployment WAR.
I will do so and try. ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3070449 |
That was it.
Thanks very much for your help. PS I already have, and enjoy your book! ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3070451 |
Hi Steve, Thanks for the feed-back on the book! If you have time, that would be great to have your comment on Amazon's book page: Best regards, Jerome 2013/12/17 Steven Parks <[hidden email]> That was it. |
Free forum by Nabble | Edit this page |