|
From: Jozef H. <joz...@gm...> - 2011-06-03 11:47:23
|
The problem is that you're using Seam 2 injection (@Logger) in an object
which is not a Seam component. Add @Name to turn AsyncResourceBean into
a Seam component.
On 06/01/2011 03:13 PM, Clemens Eisserer wrote:
> Hi,
>
> I would like to use RestEasy's EJB integration in a
> jboss6/seam/richfaces webapp.
> Everything seems to work file, except injection of other EJBs.
>
> I basically did the following:
>
> @Path("/async")
> public interface AsyncResource {
>
> @GET
> @Path("/{message}")
> public Response doSomething();
> }
>
>
> @Stateless
> public class AsyncResourceBean implements AsyncResource {
>
> @Logger
> Log log;
>
> public Response doSomething(){
> log.info("polling map"); //NPE
> return Response.status(200).entity("hello").build();
> }
> }
>
> When log variable is accessed, I get the following exception, guess
> its just caused by a NullPointerException:
> 17:02:21,192 ERROR [org.ajax4jsf.webapp.BaseXMLFilter] Exception in
> the filter chain: javax.servlet.ServletException:
> java.lang.IllegalArgumentException: no file extension in servlet path:
> /async/message
>
> If I remove the log statement, everything works fine again.
>
> Any ideas what could be wrong?
>
>
> Thank you in advance, Clemens
>
> ------------------------------------------------------------------------------
> Simplify data backup and recovery for your virtual environment with vRanger.
> Installation's a snap, and flexible recovery options mean your data is safe,
> secure and there when you need it. Data protection magic?
> Nope - It's vRanger. Get your free trial download today.
> http://p.sf.net/sfu/quest-sfdev2dev
> _______________________________________________
> Resteasy-users mailing list
> Res...@li...
> https://lists.sourceforge.net/lists/listinfo/resteasy-users
|