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 <parxeconsult...@gmail.com>

> 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
>

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3070446

Reply via email to