[seam-issues] [JBoss JIRA] (JBSEAM-3938) Seam's Resteasy implementation does not support tagged interfaces, nor classes that implement them.
Sean Flanigan (JIRA)
jira-events at lists.jboss.org
Thu Sep 12 02:00:04 EDT 2013
[ https://issues.jboss.org/browse/JBSEAM-3938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12803701#comment-12803701 ]
Sean Flanigan commented on JBSEAM-3938:
---------------------------------------
(I'm assuming "tagged interfaces" refers to interfaces which have JAX-RS annotations.)
I ran into a related problem with this set up in Seam 2.3:
{code}
@Path("/accounts")
public interface AccountsResource {
@GET
public Response get();
}
@Path("/accounts")
@Name("accountsService")
public class AccountsService implements AccountsResource {
@Context
private Request request;
@GET
public Response get()
{
// use request for something -> NullPointerException
}
}
{code}
If the bean implements an interface which is annotated @Path, the @Context is not injected.
> Seam's Resteasy implementation does not support tagged interfaces, nor classes that implement them.
> ---------------------------------------------------------------------------------------------------
>
> Key: JBSEAM-3938
> URL: https://issues.jboss.org/browse/JBSEAM-3938
> Project: Seam 2
> Issue Type: Bug
> Components: WS
> Affects Versions: 2.1.1.GA
> Environment: SEAM 2.1.1.GA with seam-resteasy patch described in https://jira.jboss.org/jira/browse/JBSEAM-3449, and RestEasy 1.0.1.GA.
> Reporter: John Sublette
> Assignee: Jozef Hartinger
> Priority: Minor
> Labels: RestEasy
>
> Seam's Resteasy implementation does not support tagged interfaces, nor classes that implement them as described in RestEasy's documentation (section 28.2 - Sharing an interface...). An interface with tagged @Path throws an exception when it is registered - because an interface doesn't have a constructor.
> See org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap Line 112 through 138 for how RestEasy handles this by default - (using Scannotation)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list