I have the same issue with custom principal.
I have manged to replace WebPrincipal in web tier, however, when I try to get CallerPrincipal from EJB tier, GF always return com.sun.enterprise.deployment.PrincipalImpl.
After check the GF src code, found couple of places this com.sun.enterprise.deployment.PrincipalImpl have been hard coded.
Wondering whether it is bug from GF by using custom principal and ProgrammaticLogin.
Any suggestion and help will be highly appreciated.
[Message sent by forum member 'willtao' (willtao)]
http://forums.java.net/jive/thread.jspa?messageID=240060