I have this same problem. If I retry the action a few times (go back in the browser and try again) it eventually works.
I haven't yet had a chance to look into it but I realised on initial examination that I have no idea how it is meant to work (I'm debugging someone else's struts gui and don't have a lot of experience in this area or access to the original author). When the login action runs is squirrels away the username, logincontext and role manager in the session but I have no idea how this info is used later. I doubt that it is automatically retrieved, so do I need a servlet filter to retrieve this info on each invocation or does the system do something for me in re-establishing the user credentials on each subsequent invocation? (and is this what is failing sometimes?) brian wallis... On Mon, 31 Mar 2003 19:16, [EMAIL PROTECTED] wrote: > I run JBoss 3.0.6 with integrated Tomcat. My servlets/JSPs connect to > EJBs running in the same VM (using the remote interface). I got an > initialization servlet that performs a JAAS Login (using the > ClientLoginModule) *and* I got a JSP that does a JAAS logout/login (to > aid me in debugging). When the JAAS login is performed the callbacks are > executed and everything looks hunky dory. > > However, when one of my servlets/JSPs performs an EJB call the JBoss EJB > SecurityInterceptor throws an exception stating the the associated > principal is null: > > 11:01:25,681 DEBUG [GebruikerFacade] findByGebruikersnaam(josv) > 11:01:25,702 ERROR [SecurityInterceptor] Authentication exception, > principal=null 11:01:25,704 ERROR [LogInterceptor] EJBException, causedBy: > java.lang.SecurityException: Authentication exception, principal=null > at > org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(Security >Interceptor.java:173) ... > > However, my (standalone) test programs (that run from the command line > in a different VM) give me no problems (although they use the same code > to login to the appserver as the servlets/jsps). > > Am I missing something? > > ++Jos.nl ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
