[ 
https://issues.apache.org/jira/browse/OPENEJB-2016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13643946#comment-13643946
 ] 

Romain Manni-Bucau commented on OPENEJB-2016:
---------------------------------------------

Hi,

About 1.5.3 we have to discuss it on the dev list. Personally i'm not happy of 
the 1.5.2 merges so i dont want it again
                
> Injecting Principal bean doesn't work
> -------------------------------------
>
>                 Key: OPENEJB-2016
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-2016
>             Project: OpenEJB
>          Issue Type: Bug
>    Affects Versions: 4.5.2
>         Environment: OpenJDK 1.7.0_06 (IcedTea 2.3.8.4), i586
>            Reporter: Dimitri
>
> In a web application (without EJBs), a default javax.security.Principal can't 
> be injected (see JSR-299, section 3.6). My initial intention was to inject it 
> into some other managed bean, but, after receiving an NPE, I've tried 
> injecting into a servlet and JAX-RS web service - with the same result. I've 
> tried "@Inject @Default private Principal principal" and "@Inject private 
> Instance<Principal> principal", both methods fail with identical stacktrace.
> Tested with TomEE 1.5.2 JAX-RS and TomEE 1.5.2 Plus. At the same time, 
> injection succeeds in GlassFish 3.1.2.

--
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

Reply via email to