[seam-issues] [JBoss JIRA] Updated: (JBSEAM-4039) Seam component cannot serve as a JAX-RS subresource

Jozef Hartinger (JIRA) jira-events at lists.jboss.org
Thu Apr 1 07:30:37 EDT 2010


     [ https://jira.jboss.org/jira/browse/JBSEAM-4039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jozef Hartinger updated JBSEAM-4039:
------------------------------------

    Affects: [Documentation (Ref Guide, User Guide, etc.), Release Notes]  (was: [Release Notes])


> 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: 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