[seam-issues] [JBoss JIRA] Commented: (JBSEAM-4039) Seam component cannot serve as a JAX-RS subresource
Jozef Hartinger (JIRA)
jira-events at lists.jboss.org
Fri Dec 11 08:22:30 EST 2009
[ https://jira.jboss.org/jira/browse/JBSEAM-4039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12499446#action_12499446 ]
Jozef Hartinger commented on JBSEAM-4039:
-----------------------------------------
Added testcase org.jboss.seam.example.restbay.test.SubresourceTest.testSubresourceGET()
> Seam component cannot serve as a JAX-RS subresource
> ---------------------------------------------------
>
> Key: JBSEAM-4039
> URL: https://jira.jboss.org/jira/browse/JBSEAM-4039
> Project: Seam
> Issue Type: Bug
> Components: WS
> Reporter: Jozef Hartinger
>
> When Seam component is returned as a subresource, RESTEasy scans it's javassist proxy for JAX-RS annotations. It should however scan the actual component's class instead.
> Following snippet:
> @Path("/{username}/{context}")
> public ContextResource getContextResource(@PathParam("username")String username) {
> ...
> return (ContextResource) Component.getInstance("contextResource");
> }
> causes LoggableException with message:
> Subresource for target class has no jax-rs annotations.: org.jboss.seam.example.rest.resource.ContextResource_$$_javassist_seam_9
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list