You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Dimitri (JIRA)" <ji...@apache.org> on 2013/04/27 23:50:15 UTC
[jira] [Created] (OPENEJB-2016) Injecting Principal bean doesn't
work
Dimitri created OPENEJB-2016:
--------------------------------
Summary: 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.
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