-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Sometimes when I log in using Spring Security i get redirected to /zkau. It happens everytime after i restart the server, and then seldomly after that. Would this be more of a ZK problem, or Spring problem, really just a mixture of the two? Does anyone know why this may be happening or what may be causing it, and even better, what I could do to fix it?
Thanks in advance for any help i can get.
-James
Hi, james!
When destroy desktop, web browser sends this event, but Session already destroyed and Spring Security remembers this error request to url "/zkau".
Decision: turn off in Spring Security remember the last error request.
Thank you V.
Would you mind pointing in the direction of how to turn off the 'remember last error request' functionality in Spring Security?
Only thing I have really been able to find is about the "remember me" functionality.
Meanwhile I'll continue my search, and again thank you.
-James
When I add that line of code, i get the following error
[ERROR,ContextLoader,http-8080-1] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'exceptionTranslationFilter' defined in ServletContext resource [/WEB-INF/applicationContext-security.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: authenticationEntryPoint must be specified
"authenticationEntryPoint must be specified", it is specified...
This problem only occurs when I add that bean, take it out and no problems.
Thank you very much for answering back though, I hadn't found anything about that.
-James
Okay, so I guess all I had to do was add "<property name="authenticationEntryPoint" ref="authenticationProcessingFilterEntryPoint"/>"
So now it is as follows:
<bean id="exceptionTranslationFilter" class="org.springframework.security.ui.ExceptionTranslationFilter"> <property name="createSessionAllowed" value="false"/> <property name="authenticationEntryPoint" ref="authenticationProcessingFilterEntryPoint"/> </bean>
Sorry, that means your problem is something else ...
May be filter-mapping in web.xml ?
I like this:
<filter-mapping> <filter-name>securityFilterChain</filter-name> <url-pattern>*.html</url-pattern> <url-pattern>/zkau</url-pattern> <url-pattern>*.dsp</url-pattern> <url-pattern>*.zul</url-pattern> </filter-mapping>
I'm not sure what everything does and how it all works... I'm still fairly new to a lot of this stuff (zk, java, spring)
But here is the info that I think pertains to this
excerpt from web.xml
<filter-mapping> <filter-name>springSecurityFilterChain</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <servlet> <description>ZK loader for evaluating ZK pages</description> <servlet-name>zkLoader</servlet-name> <servlet-class>org.zkoss.zk.ui.http.DHtmlLayoutServlet</servlet-class> <init-param> <param-name>update-uri</param-name> <param-value>/zkau</param-value> </init-param> <load-on-startup>1</load-on-startup><!-- MUST --> </servlet> <servlet-mapping> <servlet-name>zkLoader</servlet-name> <url-pattern>*.zul</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>zkLoader</servlet-name> <url-pattern>*.zhtml</url-pattern> </servlet-mapping> <servlet> <description>The asynchronous update engine for ZK</description> <servlet-name>auEngine</servlet-name> <servlet-class>org.zkoss.zk.au.http.DHtmlUpdateServlet</servlet-class> </servlet> <servlet> <description>The servlet loads the DSP pages.</description> <servlet-name>dspLoader</servlet-name> <servlet-class>org.zkoss.web.servlet.dsp.InterpreterServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>auEngine</servlet-name> <url-pattern>/zkau/*</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>dspLoader</servlet-name> <url-pattern>*.dsp</url-pattern> </servlet-mapping>
It seems like the 2 parts that have zkau need to be there anyway. I've tried taking them out and it doesn't work that way. I guess the auEngine is like the rendering engine for the zk components. nothing else even points to or mentions zkau in my web.xml file.
I'm not sure if this gives the information you may need to help me figure this out
Also, I've tried adding the lines that you have (all 4 just for safety) and it didn't seem to change anything
<filter-mapping> <filter-name>springSecurityFilterChain</filter-name> <url-pattern>/*</url-pattern> <url-pattern>*.html</url-pattern> <url-pattern>/zkau</url-pattern> <url-pattern>*.dsp</url-pattern> <url-pattern>*.zul</url-pattern> </filter-mapping>
I appreciate your continued help V.
There doesn't seem to be much of anything on this subject, or at least not that I have been able to find.
So thank you very much.
Can you see anything that may be incorrect or possibly causing this problem?
Or is there some other information that might be beneficial to you?
Asked: 2009-05-01 18:41:02 +0800
Seen: 493 times
Last updated: Jan 18 '21