Hi, The problem I described in <http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2639896> was fixed in version 2.0.0 (I was using 2.0-RC4 for this test). Great!
However, there's a new problem. (I'm using the same code: <http://gist.github.com/496447>) This works: <dependencies> <dependency> <groupId>org.restlet.jse</groupId> <artifactId>org.restlet</artifactId> <version>2.0.0</version> </dependency> <dependency> <groupId>org.restlet.jse</groupId> <artifactId>org.restlet.ext.httpclient</artifactId> <version>2.0.0</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.4</version> </dependency> </dependencies> As soon as I add Jetty, Simple or Netty, the tests fail. <dependency> <groupId>org.restlet.jse</groupId> <artifactId>org.restlet.ext.jetty</artifactId> <version>2.0.0</version> </dependency> The main difference I've been able to notice is that, on a GET request, with the default connector, the request's entity is an EmptyRepresentation, whereas with either Jetty, Simple or Netty, the request's entity is in InputRepresentation with isAvailable() being true. When AnnotationInfo.isCompatibleRequestEntity(...) is called as part of the automatic ServerResource.getVariants() call, the fact that there is an entity available makes it return 'false' and thus the variants are never added. Best wishes, Bruno. ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2644818