|
From: Michael M. <mmu...@re...> - 2010-08-20 13:01:42
|
I'm getting puzzling behaviour running my unit tests that use the embedded container (org.jboss.resteasy.test.EmbeddedContainer). I am seeing the following, consistently, but on random tests: I perform a POST to one of my resources using ClientRequest (the first line of log output). However the JAXRS annotated resource that should handle the request doesn't get called for 60 seconds (the second line): 2010-08-20 11:55:03,268 [Acme.Utils.ThreadPool(16)-PooledThread: Acme.Serve.Serve$ServeConnection@e11e831] TRACE - POST: http://localhost:8081/tx/participant/pid2/tx/0_ffff7f000001_ddce_4c6e5f06_5/commit 2010-08-20 11:56:02,513 [Acme.Utils.ThreadPool(4)-PooledThread: Acme.Serve.Serve$ServeConnection@33f98d58] DEBUG - particpant: commit: pid2/tx/0_ffff7f000001_ddce_4c6e5f06_5/commit I'm using the per request model for my resources. I tried moving to the Singleton model to see if I get different behaviour but this gives me the error "Class is not a root resource. It, or one of its interfaces must be annotated with @Path". This latter error is also exhibited by the RESTeasy test suite: I checked out: https://resteasy.svn.sourceforge.net/svnroot/resteasy/trunk/jaxrs/resteasy-jaxrs Modified the following simple test src/test/java/org/jboss/resteasy/test/finegrain/client/ClientResponseTest.java such that SimpleResource.class is registered as a SingletonResource and got the same error: "java.lang.RuntimeException: Class is not a root resource. It, or one of its interfaces must be annotated with @Path" |