This content has been marked as final.
Show 1 reply
-
1. Re: Inject Principal
sverker.sverker.abrahamsson.com Oct 26, 2011 7:01 PM (in response to sverker.sverker.abrahamsson.com)Well, I found it. The principal is actually not set, that's why the weld proxy throws that exception. Neither is it possible to get it from session bean context. The reason for that is that Liferay by default does not use JAAS to authenticate but use it's own framework. There is a jaas login module but it's too limited since JBoss implementation essentially only permits username and password to be submitted to authentication.