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

Jozef Hartinger (JIRA) jira-events at lists.jboss.org
Tue Mar 24 15:20:50 EDT 2009

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:

   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