[
https://jira.jboss.org/jira/browse/JBSEAM-3938?page=com.atlassian.jira.pl...
]
Jozef Hartinger commented on JBSEAM-3938:
-----------------------------------------
The exception is not thrown anymore. Currently the resource is not registered, though.
You can workaround by:
a) duplicating the @Path annotation on the bean class i.e.
@Path("/foo")
public interface FooLocal
{
@GET
public String foo();
}
@Path("/foo")
public class Foo implements FooLocal
{
public String foo()
{
return "foo";
}
}
b) making the resource Seam component by giving it a @Name
@Name("foo")
public class Foo implements FooLocal
{
public String foo()
{
return "foo";
}
}
Seam's Resteasy implementation does not support tagged
interfaces, nor classes that implement them.
---------------------------------------------------------------------------------------------------
Key: JBSEAM-3938
URL:
https://jira.jboss.org/jira/browse/JBSEAM-3938
Project: Seam
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
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 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