on 2018 Dec 06 1:11 PM
Dear Experts ,
Need your help here , below are the two logs one from local setup and other from stage environment. We are able to login into local environment but in stage login fails . Upon checking logs I can see few discrepancies in dispatcher servlet logs . Can somebody help me to understand why 2 different JSP has been picked up in two different environment , also why user is null in stage whereas local has correct user passed.
local :
TRACE [hybrisHTTP32] (customTenant) [DispatcherServlet] Cleared thread-bound request context: SecurityContextHolderAwareRequestWrapper[ org.springframework.security.web.context.HttpSessionSecurityContextRepository$Servlet3SaveToSessionRequestWrapper@40f3df94] TRACE [hybrisHTTP32] (customTenant) [DispatcherServlet] Cleared thread-bound request context: SecurityContextHolderAwareRequestWrapper[ org.springframework.security.web.context.HttpSessionSecurityContextRepository$Servlet3SaveToSessionRequestWrapper@40f3df94] DEBUG [hybrisHTTP32] (customTenant) [DispatcherServlet] Successfully completed request DEBUG [hybrisHTTP32] (customTenant) [DispatcherServlet] Successfully completed request TRACE [hybrisHTTP32] (customTenant) [XmlWebApplicationContext] Publishing event in WebApplicationContext for namespace 'DispatcherServlet-servlet': ServletRequestHandledEvent: url=[/WEB-INF/views/desktop/pages/layout/mainPageLayout.jsp]; client=[127.0.0.1]; method=[GET]; servlet=[DispatcherServlet]; session=[BF1DA86BD79FF20FB0A52BEC80CB905F]; user=[a@a.com]; time=[15ms]; status=[OK] TRACE [hybrisHTTP32] (customTenant) [XmlWebApplicationContext] Publishing event in WebApplicationContext for namespace 'DispatcherServlet-servlet': ServletRequestHandledEvent: url=[/WEB-INF/views/desktop/pages/layout/mainPageLayout.jsp]; client=[127.0.0.1]; method=[GET]; servlet=[DispatcherServlet]; session=[BF1DA86BD79FF20FB0A52BEC80CB905F]; user=[a@a.com]; time=[15ms]; status=[OK] TRACE [hybrisHTTP32] (customTenant) [DispatcherServlet] Cleared thread-bound request context: SecurityContextHolderAwareRequestWrapper[ org.springframework.security.web.context.HttpSessionSecurityContextRepository$Servlet3SaveToSessionRequestWrapper@40f3df94] TRACE [hybrisHTTP32] (customTenant) [DispatcherServlet] Cleared thread-bound request context: SecurityContextHolderAwareRequestWrapper[ org.springframework.security.web.context.HttpSessionSecurityContextRepository$Servlet3SaveToSessionRequestWrapper@40f3df94]
DEBUG [hybrisHTTP32] (customTenant) [DispatcherServlet] Successfully completed request DEBUG [hybrisHTTP32] (customTenant) [DispatcherServlet] Successfully completed request TRACE [hybrisHTTP32] (customTenant) [XmlWebApplicationContext] Publishing event in WebApplicationContext for namespace 'DispatcherServlet-servlet': ServletRequestHandledEvent: url=[/home]; client=[127.0.0.1]; method=[GET]; servlet=[DispatcherServlet]; session=[BF1DA86BD79FF20FB0A52BEC80CB905F]; user=[a@a.com]; time=[174ms]; status=[OK] TRACE [hybrisHTTP32] (customTenant) [XmlWebApplicationContext] Publishing event in WebApplicationContext for namespace 'DispatcherServlet-servlet': ServletRequestHandledEvent: url=[/home]; client=[127.0.0.1]; method=[GET]; servlet=[DispatcherServlet]; session=[BF1DA86BD79FF20FB0A52BEC80CB905F]; user=[a@a.com]; time=[174ms]; status=[OK] DEBUG [hybrisHTTP32] (customTenant) [ExceptionTranslationFilter] Chain processed normally
Stage env:
INFO | jvm 1 | main | 2018/12/06 10:36:48.420 | TRACE [ajp-bio-8010-exec-6] (customTenant) [DispatcherServlet] Cleared thread-bound request context: SecurityContextHolderAwareRequestWrapper[ org.springframework.security.web.context.HttpSessionSecurityContextRepository$Servlet3SaveToSessionRequestWrapper@1acfb230] INFO | jvm 1 | main | 2018/12/06 10:36:48.420 | TRACE [ajp-bio-8010-exec-6] (customTenant) [DispatcherServlet] Cleared thread-bound request context: SecurityContextHolderAwareRequestWrapper[ org.springframework.security.web.context.HttpSessionSecurityContextRepository$Servlet3SaveToSessionRequestWrapper@1acfb230] INFO | jvm 1 | main | 2018/12/06 10:36:48.420 | DEBUG [ajp-bio-8010-exec-6] (customTenant) [DispatcherServlet] Successfully completed request INFO | jvm 1 | main | 2018/12/06 10:36:48.420 | DEBUG [ajp-bio-8010-exec-6] (customTenant) [DispatcherServlet] Successfully completed request
INFO | jvm 1 | main | 2018/12/06 10:36:48.420 | TRACE [ajp-bio-8010-exec-6] (customTenant) [XmlWebApplicationContext] Publishing event in WebApplicationContext for namespace 'DispatcherServlet-servlet': ServletRequestHandledEvent: url=[/WEB-INF/views/desktop/pages/layout/landingLayout1Page.jsp]; client=[10.16.98.142]; method=[GET]; servlet=[DispatcherServlet]; session=[880F29A43EB6AB908B81BC845D28DCEE]; user=[null]; time=[3ms]; status=[OK] INFO | jvm 1 | main | 2018/12/06 10:36:48.420 | TRACE [ajp-bio-8010-exec-6] (customTenant) [XmlWebApplicationContext] Publishing event in WebApplicationContext for namespace 'DispatcherServlet-servlet': ServletRequestHandledEvent: url=[/WEB-INF/views/desktop/pages/layout/landingLayout1Page.jsp]; client=[10.16.98.142]; method=[GET]; servlet=[DispatcherServlet]; session=[880F29A43EB6AB908B81BC845D28DCEE]; user=[null]; time=[3ms]; status=[OK] INFO | jvm 1 | main | 2018/12/06 10:36:48.421 | TRACE [ajp-bio-8010-exec-6] (customTenant) [DispatcherServlet] Cleared thread-bound request context: SecurityContextHolderAwareRequestWrapper[ org.springframework.security.web.context.HttpSessionSecurityContextRepository$Servlet3SaveToSessionRequestWrapper@1acfb230] INFO | jvm 1 | main | 2018/12/06 10:36:48.421 | TRACE [ajp-bio-8010-exec-6] (customTenant) [DispatcherServlet] Cleared thread-bound request context: SecurityContextHolderAwareRequestWrapper[ org.springframework.security.web.context.HttpSessionSecurityContextRepository$Servlet3SaveToSessionRequestWrapper@1acfb230]
INFO | jvm 1 | main | 2018/12/06 10:36:48.421 | DEBUG [ajp-bio-8010-exec-6] (customTenant) [DispatcherServlet] Successfully completed request INFO | jvm 1 | main | 2018/12/06 10:36:48.421 | DEBUG [ajp-bio-8010-exec-6] (customTenant) [DispatcherServlet] Successfully completed request
INFO | jvm 1 | main | 2018/12/06 10:36:48.421 | TRACE [ajp-bio-8010-exec-6] (customTenant) [XmlWebApplicationContext] Publishing event in WebApplicationContext for namespace 'DispatcherServlet-servlet': ServletRequestHandledEvent: url=[/]; client=[10.16.98.142]; method=[GET]; servlet=[DispatcherServlet]; session=[880F29A43EB6AB908B81BC845D28DCEE]; user=[null]; time=[91ms]; status=[OK] INFO | jvm 1 | main | 2018/12/06 10:36:48.421 | TRACE [ajp-bio-8010-exec-6] (customTenant) [XmlWebApplicationContext] Publishing event in WebApplicationContext for namespace 'DispatcherServlet-servlet': ServletRequestHandledEvent: url=[/]; client=[10.16.98.142]; method=[GET]; servlet=[DispatcherServlet]; session=[880F29A43EB6AB908B81BC845D28DCEE]; user=[null]; time=[91ms]; status=[OK]
INFO | jvm 1 | main | 2018/12/06 10:36:48.421 | DEBUG [ajp-bio-8010-exec-6] (customTenant) [ExceptionTranslationFilter] Chain processed normally INFO | jvm 1 | main | 2018/12/06 10:36:48.421 | DEBUG [ajp-bio-8010-exec-6] (customTenant) [ExceptionTranslationFilter] Chain processed normally INFO | jvm 1 | main | 2018/12/06 10:36:58.130 | DEBUG [ajp-bio-8010-exec-10] (customTenant) [ExceptionTranslationFilter] **Access is denied (user is anonymous); redire*cting to authentication entry point INFO | jvm 1 | main | 2018/12/06 10:36:58.130 | org.springframework.security.access.AccessDeniedException: Access is denied* INFO | jvm 1 | main | 2018/12/06 10:36:58.130 | at org.springframework.security.access.vote.AffirmativeBased.decide(AffirmativeBased.java:84) ~[spring-security-core-4.2.6.RELEASE.jar:4.2.6.RELEASE] INFO | jvm 1 | main | 2018/12/06 10:36:58.130 | at org.springframework.security.access.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:233) ~[spring-security-core-4.2.6.RELEASE.jar:4.2.6.RELEASE] INFO | jvm 1 | main | 2018/12/06 10:36:58.130 | at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:124) ~[spring-security-web-4.2.6.RELEASE.jar:4.2.6.RELEASE] INFO | jvm 1 | main | 2018/12/06 10:36:58.130 | at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91) ~[spring-security-web-4.2.6.RELEASE.jar:4.2.6.RELEASE] INFO | jvm 1 | main | 2018/12/06 10:36:58.130 | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) ~[spring-security
Regards Ved
Request clarification before answering.
User | Count |
---|---|
15 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.