users@jersey.java.net

RE: [Jersey] Re: Can't get _at_Context Application be injected

From: Ecker, Sandor (ext) <"Ecker,>
Date: Tue, 27 Jul 2010 12:32:27 +0200

Hi,

Can this be related to the @EJB injection on WebLogic? I get there also null pointerexceptions on the member which should have hold the injected EJB (stateless bean)?

Regards,
Sandor

-----Original Message-----
From: Johannes Schade [mailto:jschade_at_giscoe.com]
Sent: Dienstag, 27. Juli 2010 12:04
To: users_at_jersey.dev.java.net
Subject: [Jersey] Re: Can't get @Context Application be injected


Dear Joerg
Thank you very much for your post. I had the same problem (in version 1.1.5)
and did not realise it was a bug. I saw your post, downloaded version 1.3
and could inject the application into a resource, which solved a big problem
for me. Thank you very much and Paul as well of course!
However, there seems to be a similar problem when trying to inject the
ServletConfig, the ServletContext or the ResourceConfig on a application. I
made an application subclass and applied @Context ServletContext as a class
field and received a null. Perhaps that this is also a bug?

Best regards, Johannes

-- 
View this message in context: http://jersey.576304.n2.nabble.com/Can-t-get-Context-Application-be-injected-tp5128719p5341527.html
Sent from the Jersey mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
For additional commands, e-mail: users-help_at_jersey.dev.java.net