<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: Every single remote ejb call starts full authentication process with SecurityDomain cache-type="default"
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/danjee">Daniel Jipa</a> in <i>JBoss AS 7 Development</i> - <a href="https://community.jboss.org/message/729537#729537">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>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.</p><p>Here is the stack trace:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">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)&#160;&#160;&#160;&#160;&#160; at com.asf.security.server.jaas.AsfBaseLoginModule.login(AsfBaseLoginModule.java:115)
09:35:04,849 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; at sun.reflect.GeneratedMethodAccessor128.invoke(Unknown Source)
09:35:04,849 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
09:35:04,850 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; at java.lang.reflect.Method.invoke(Method.java:597)
09:35:04,850 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
09:35:04,850 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
09:35:04,851 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
09:35:04,851 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; at java.security.AccessController.doPrivileged(Native Method)
09:35:04,851 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
09:35:04,852 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
09:35:04,852 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; at org.jboss.security.authentication.JBossCachedAuthenticationManager.defaultLogin(JBossCachedAuthenticationManager.java:449)
09:35:04,853 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; at org.jboss.security.authentication.JBossCachedAuthenticationManager.proceedWithJaasLogin(JBossCachedAuthenticationManager.java:383)
09:35:04,853 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; at org.jboss.security.authentication.JBossCachedAuthenticationManager.authenticate(JBossCachedAuthenticationManager.java:361)
09:35:04,854 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; at org.jboss.security.authentication.JBossCachedAuthenticationManager.isValid(JBossCachedAuthenticationManager.java:160)
09:35:04,854 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; at org.jboss.as.security.service.SimpleSecurityManager.authenticate(SimpleSecurityManager.java:354)
09:35:04,855 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; at org.jboss.as.security.service.SimpleSecurityManager.push(SimpleSecurityManager.java:292)
09:35:04,855 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; 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)&#160;&#160;&#160;&#160;&#160; 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)&#160;&#160;&#160;&#160;&#160; at java.security.AccessController.doPrivileged(Native Method)
09:35:04,856 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:74)
09:35:04,857 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
09:35:04,857 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; 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)&#160;&#160;&#160;&#160;&#160; at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
09:35:04,858 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; 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)&#160;&#160;&#160;&#160;&#160; at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
09:35:04,859 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
09:35:04,860 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
09:35:04,860 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
09:35:04,860 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
09:35:04,861 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
09:35:04,861 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; 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)&#160;&#160;&#160;&#160;&#160; 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)&#160;&#160;&#160;&#160;&#160; at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
09:35:04,862 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
09:35:04,863 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)
09:35:04,863 ERROR [stderr] (http--0.0.0.0-8089-2)&#160;&#160;&#160;&#160;&#160; 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)&#160;&#160;&#160;&#160;&#160; at com.asf.capone.web.CaponeVaadinApplication$1.buttonClick(CaponeVaadinApplication.java:48)

</code></pre></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/729537#729537">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss AS 7 Development at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>