wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes getSessionContext().getCallerPrincipal().getName() is returning <anonymous> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "getSessionContext().getCallerPrincipal().getName() is returning <anonymous>" Watch "getSessionContext().getCallerPrincipal().getName() is returning <anonymous>" New topic

getSessionContext().getCallerPrincipal().getName() is returning <anonymous>

sivakumar sreepathi

Joined: Jul 01, 2010
Posts: 2
Hi all,

the following statement "getSessionContext().getCallerPrincipal().getName()" is working fine and returning Usernamer in weblogic 8 and UNIX box. when we migrated the application to weblogic 10.3 and Windows box, above statement is returning <anonymous>. can any one please guide me how to solve this problem.

Thanks in advacne
Sivakumar S.
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Is you web applciation defined with a security constraint?

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
sivakumar sreepathi

Joined: Jul 01, 2010
Posts: 2
yes we are using Ldap security constraints for validating the username and password
jQuery in Action, 2nd edition
subject: getSessionContext().getCallerPrincipal().getName() is returning <anonymous>
Similar Threads
How standalone program interact with JBOSS
about starting a new Thread
ejb as abstract ?
Security for MDB
How to get login name ???