[seam-issues] [JBoss JIRA] Closed: (JBSEAM-4039) Seam component cannot serve as a JAX-RS subresource
Jozef Hartinger (JIRA)
jira-events at lists.jboss.org
Thu Jul 29 04:33:33 EDT 2010
[ https://jira.jboss.org/browse/JBSEAM-4039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jozef Hartinger closed JBSEAM-4039.
-----------------------------------
Verified on 2.2.1.CR2
> Seam component cannot serve as a JAX-RS subresource
> ---------------------------------------------------
>
> Key: JBSEAM-4039
> URL: https://jira.jboss.org/browse/JBSEAM-4039
> Project: Seam
> Issue Type: Bug
> Components: WS
> Reporter: Jozef Hartinger
> Assignee: Jozef Hartinger
> Fix For: 2.2.1.CR2
>
>
> 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/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list