[jboss-dev-forums] [JBoss AS 7 Development] - Re: Every single remote ejb call starts full authentication process with SecurityDomain cache-type="default"

Daniel Jipa do-not-reply at jboss.com
Thu Apr 12 02:39:02 EDT 2012


Daniel Jipa [https://community.jboss.org/people/danjee] created the discussion

"Re: Every single remote ejb call starts full authentication process with SecurityDomain cache-type="default""

To view the discussion, visit: https://community.jboss.org/message/729537#729537

--------------------------------------------------------------
I've placed a stack trace in my login module and I see that JBossCachedAuthenticationManager,authenticate is getting called but also my login module is called.
Here is the stack trace:


09:35:04,848 ERROR [stderr] (http--0.0.0.0-8089-2) java.lang.Throwable: Trace for login module calls
09:35:04,848 ERROR [stderr] (http--0.0.0.0-8089-2)      at com.asf.security.server.jaas.AsfBaseLoginModule.login(AsfBaseLoginModule.java:115)
09:35:04,849 ERROR [stderr] (http--0.0.0.0-8089-2)      at sun.reflect.GeneratedMethodAccessor128.invoke(Unknown Source)
09:35:04,849 ERROR [stderr] (http--0.0.0.0-8089-2)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
09:35:04,850 ERROR [stderr] (http--0.0.0.0-8089-2)      at java.lang.reflect.Method.invoke(Method.java:597)
09:35:04,850 ERROR [stderr] (http--0.0.0.0-8089-2)      at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
09:35:04,850 ERROR [stderr] (http--0.0.0.0-8089-2)      at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
09:35:04,851 ERROR [stderr] (http--0.0.0.0-8089-2)      at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
09:35:04,851 ERROR [stderr] (http--0.0.0.0-8089-2)      at java.security.AccessController.doPrivileged(Native Method)
09:35:04,851 ERROR [stderr] (http--0.0.0.0-8089-2)      at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
09:35:04,852 ERROR [stderr] (http--0.0.0.0-8089-2)      at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
09:35:04,852 ERROR [stderr] (http--0.0.0.0-8089-2)      at org.jboss.security.authentication.JBossCachedAuthenticationManager.defaultLogin(JBossCachedAuthenticationManager.java:449)
09:35:04,853 ERROR [stderr] (http--0.0.0.0-8089-2)      at org.jboss.security.authentication.JBossCachedAuthenticationManager.proceedWithJaasLogin(JBossCachedAuthenticationManager.java:383)
09:35:04,853 ERROR [stderr] (http--0.0.0.0-8089-2)      at org.jboss.security.authentication.JBossCachedAuthenticationManager.authenticate(JBossCachedAuthenticationManager.java:361)
09:35:04,854 ERROR [stderr] (http--0.0.0.0-8089-2)      at org.jboss.security.authentication.JBossCachedAuthenticationManager.isValid(JBossCachedAuthenticationManager.java:160)
09:35:04,854 ERROR [stderr] (http--0.0.0.0-8089-2)      at org.jboss.as.security.service.SimpleSecurityManager.authenticate(SimpleSecurityManager.java:354)
09:35:04,855 ERROR [stderr] (http--0.0.0.0-8089-2)      at org.jboss.as.security.service.SimpleSecurityManager.push(SimpleSecurityManager.java:292)
09:35:04,855 ERROR [stderr] (http--0.0.0.0-8089-2)      at org.jboss.as.ejb3.security.SecurityContextInterceptor$1.run(SecurityContextInterceptor.java:49)
09:35:04,856 ERROR [stderr] (http--0.0.0.0-8089-2)      at org.jboss.as.ejb3.security.SecurityContextInterceptor$1.run(SecurityContextInterceptor.java:45)
09:35:04,856 ERROR [stderr] (http--0.0.0.0-8089-2)      at java.security.AccessController.doPrivileged(Native Method)
09:35:04,856 ERROR [stderr] (http--0.0.0.0-8089-2)      at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:74)
09:35:04,857 ERROR [stderr] (http--0.0.0.0-8089-2)      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
09:35:04,857 ERROR [stderr] (http--0.0.0.0-8089-2)      at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:42)
09:35:04,858 ERROR [stderr] (http--0.0.0.0-8089-2)      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
09:35:04,858 ERROR [stderr] (http--0.0.0.0-8089-2)      at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
09:35:04,859 ERROR [stderr] (http--0.0.0.0-8089-2)      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
09:35:04,859 ERROR [stderr] (http--0.0.0.0-8089-2)      at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
09:35:04,860 ERROR [stderr] (http--0.0.0.0-8089-2)      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
09:35:04,860 ERROR [stderr] (http--0.0.0.0-8089-2)      at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
09:35:04,860 ERROR [stderr] (http--0.0.0.0-8089-2)      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
09:35:04,861 ERROR [stderr] (http--0.0.0.0-8089-2)      at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
09:35:04,861 ERROR [stderr] (http--0.0.0.0-8089-2)      at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)
09:35:04,862 ERROR [stderr] (http--0.0.0.0-8089-2)      at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173)
09:35:04,862 ERROR [stderr] (http--0.0.0.0-8089-2)      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
09:35:04,862 ERROR [stderr] (http--0.0.0.0-8089-2)      at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
09:35:04,863 ERROR [stderr] (http--0.0.0.0-8089-2)      at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)
09:35:04,863 ERROR [stderr] (http--0.0.0.0-8089-2)      at com.asf.kollecto.server.ejb.persistence.PersistenceControllerLocal$$$view11.get(Unknown Source)
09:35:04,864 ERROR [stderr] (http--0.0.0.0-8089-2)      at com.asf.capone.web.CaponeVaadinApplication$1.buttonClick(CaponeVaadinApplication.java:48)
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/729537#729537]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120412/46b8576e/attachment.html 


More information about the jboss-dev-forums mailing list