Re: ExceptionMapper and @inject

2014-12-18 Thread hwaastad
Yes, and you are right, it's working. Something fishy with my maven cache. br hw -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/ExceptionMapper-and-inject-tp4673237p4673246.html Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Error when Faces Servlet declared in web-fragment.xml

2014-12-18 Thread Adam Cornett
Thanks Romain. I'll give your initial work-around a try. On Thu, Dec 18, 2014 at 11:53 AM, Romain Manni-Bucau wrote: > > PS: https://issues.apache.org/jira/browse/TOMEE-1481 > > > Romain Manni-Bucau > @rmannibucau > http://www.tomitribe.com > http://rmannibucau.wordpress.com > https://github.com

Re: Error when Faces Servlet declared in web-fragment.xml

2014-12-18 Thread Romain Manni-Bucau
PS: https://issues.apache.org/jira/browse/TOMEE-1481 Romain Manni-Bucau @rmannibucau http://www.tomitribe.com http://rmannibucau.wordpress.com https://github.com/rmannibucau 2014-12-18 17:29 GMT+01:00 Romain Manni-Bucau : > I guess it is because mapping is not found (not yet sure why) > > you c

Re: Error when Faces Servlet declared in web-fragment.xml

2014-12-18 Thread Romain Manni-Bucau
I guess it is because mapping is not found (not yet sure why) you can surely add org.apache.myfaces.INITIALIZE_ALWAYS_STANDALONE = true init parameter Romain Manni-Bucau @rmannibucau http://www.tomitribe.com http://rmannibucau.wordpress.com https://github.com/rmannibucau 2014-12-18 17:04 GMT+0

Error when Faces Servlet declared in web-fragment.xml

2014-12-18 Thread Adam Cornett
When the Faces Servlet is declared in a web-fragment.xml file contained in a library jar of my WAR, JSF doesn't start up correctly. However when I deploy the same code to WildFly 8.2 the same error doesn't occur. According to the Servlet's JavaDoc ( http://docs.oracle.com/javaee/6/api/javax/faces/

Re: ExceptionMapper and @inject

2014-12-18 Thread Romain Manni-Bucau
You mean you do: @RequestScoped public class Foo { private Response resp; // + setter @Produces public Response rep() { return resp; } } @Path("...") public class MyRep { @Inject Foo foo; @GET public Response someEndpoint() { Response resp = ..., foo.setResp(resp); return

Re: ExceptionMapper and @inject

2014-12-18 Thread hwaastad
Yeah, I see that it's OK in 1.7.2-snapshot. looking forward to 1.7.2 :-) another question: I've seen a couple og wildfly examples injecting an instance into a provider. (also having a producer somewhere). I have'nt really dug into it (will do) but I get a UnsatisfiedResolutionException. Any sugg

Re: ExceptionMapper and @inject

2014-12-18 Thread Romain Manni-Bucau
No more sure but I think it was backported to 1.7.2-SNAPSHOT..but not sure it is a EE feature. Romain Manni-Bucau @rmannibucau http://www.tomitribe.com http://rmannibucau.wordpress.com https://github.com/rmannibucau 2014-12-18 11:25 GMT+01:00 hwaastad : > Hi, > I'v noticed that I can inject in

ExceptionMapper and @inject

2014-12-18 Thread hwaastad
Hi, I'v noticed that I can inject into a @provider in 2.0.0-SNAPSHOT, ex a exceptionmapper: @Inject private Event catchEvent; but not in 1.7.1. would that be possible or is this EE7 functionality? br hw -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/ExceptionMap