[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-4039) Seam component cannot serve as a JAX-RS subresource
Christian Bauer (JIRA)
jira-events at lists.jboss.org
Tue Oct 13 02:56:05 EDT 2009
[ https://jira.jboss.org/jira/browse/JBSEAM-4039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12489479#action_12489479 ]
Christian Bauer commented on JBSEAM-4039:
-----------------------------------------
Documented the limitation for 2.2.1 release.
> 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
> Assignee: Christian Bauer
>
> 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