See the first comment here:
http://weblogs.java.net/blog/mhadley/archive/2007/09/integrating_jer.html
Regards,
Duncan Eley
----- Original Message ----
From: fjksl sdfmlsdfjlmk <peterdk79@gmail.com>
To: users@jersey.dev.java.net
Sent: Tuesday, 12 February, 2008 2:30:29 PM
Subject: cglib problem using spring in jersey
Hi,
Following Paul's article -
http://blogs.sun.com/sandoz/entry/integrating_jersey_and_spring_take
I tried to transform the Bookmark example to a spring version (allowing me to drop the custom transaction classes).
The problem I have now is that the UserResource object, which has a PersistenceContext injected using Spring's PersistenceAnnotationBeanPostProcessor is proxied by cglib
Cglib doesn't copy the annotations from the original class causing this exception:
A resource class, class example.UserResource$$EnhancerByCGLIB$$42882142, does not have any resource method, sub-resource method, or sub-resource locator.
Sow I guess I should make jersey look at the parent class somehow ?
Did someone else find a comparable problem? or now a solution.
__________________________________________________________
Sent from Yahoo! Mail - a smarter inbox
http://uk.mail.yahoo.com