{"action":"created","issue":{"url":"https://api.github.com/repos/payara/Payara/issues/299","labels_url":"https://api.github.com/repos/payara/Payara/issues/299/labels{/name}","comments_url":"https://api.github.com/repos/payara/Payara/issues/299/comments","events_url":"https://api.github.com/repos/payara/Payara/issues/299/events","html_url":"https://github.com/payara/Payara/issues/299","id":81372884,"number":299,"title":"CDI in ServerAuthModule (JSR196) resulting in No valid EE environment for injection","user":{"login":"ratcashdev","id":2928922,"avatar_url":"https://avatars.githubusercontent.com/u/2928922?v=3","gravatar_id":"","url":"https://api.github.com/users/ratcashdev","html_url":"https://github.com/ratcashdev","followers_url":"https://api.github.com/users/ratcashdev/followers","following_url":"https://api.github.com/users/ratcashdev/following{/other_user}","gists_url":"https://api.github.com/users/ratcashdev/gists{/gist_id}","starred_url":"https://api.github.com/users/ratcashdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ratcashdev/subscriptions","organizations_url":"https://api.github.com/users/ratcashdev/orgs","repos_url":"https://api.github.com/users/ratcashdev/repos","events_url":"https://api.github.com/users/ratcashdev/events{/privacy}","received_events_url":"https://api.github.com/users/ratcashdev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/payara/Payara/labels/enhancement","name":"enhancement","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2015-05-27T09:45:15Z","updated_at":"2015-11-02T23:51:07Z","closed_at":null,"body":"Calling:\r\n`Instance<MyAuthenticator> authenticator = CDI.current().select(MyAuthenticator.class, new AnnotationLiteral<Any>() {});`\r\ninside a ServerAuthModule#validateRequest(...) method results in \r\n`No valid EE environment for injection of com.sample.MyAuthenticator`\r\nalthough it seems that the bean is working properly. Similar finding here:\r\nhttp://arjan-tijms.omnifaces.org/2012/11/implementing-container-authentication.html"},"comment":{"url":"https://api.github.com/repos/payara/Payara/issues/comments/153195836","html_url":"https://github.com/payara/Payara/issues/299#issuecomment-153195836","issue_url":"https://api.github.com/repos/payara/Payara/issues/299","id":153195836,"user":{"login":"arjantijms","id":3037006,"avatar_url":"https://avatars.githubusercontent.com/u/3037006?v=3","gravatar_id":"","url":"https://api.github.com/users/arjantijms","html_url":"https://github.com/arjantijms","followers_url":"https://api.github.com/users/arjantijms/followers","following_url":"https://api.github.com/users/arjantijms/following{/other_user}","gists_url":"https://api.github.com/users/arjantijms/gists{/gist_id}","starred_url":"https://api.github.com/users/arjantijms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arjantijms/subscriptions","organizations_url":"https://api.github.com/users/arjantijms/orgs","repos_url":"https://api.github.com/users/arjantijms/repos","events_url":"https://api.github.com/users/arjantijms/events{/privacy}","received_events_url":"https://api.github.com/users/arjantijms/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T23:51:07Z","updated_at":"2015-11-02T23:51:07Z","body":"After some debugging on GF I posted an initial patch that seems to do the trick. It has to be polished a little still, but I've added it here: https://java.net/jira/browse/GLASSFISH-21447"}}