0

/zkau ??? [closed]

asked 2009-05-01 18:41:02 +0800

james gravatar image james
255 2

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

delete flag offensive retag edit

The question has been closed for the following reason "question is not relevant or outdated" by cor3000
close date 2021-01-18 10:33:50

11 Replies

Sort by ยป oldest newest

answered 2009-05-02 10:17:46 +0800

V gravatar image V
33

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.

link publish delete flag offensive edit

answered 2009-05-04 15:55:41 +0800

james gravatar image james
255 2

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

link publish delete flag offensive edit

answered 2009-05-07 12:29:57 +0800

V gravatar image V
33

<bean id="exceptionTranslationFilter" class="org.springframework.security.ui.ExceptionTranslationFilter">
<property name="createSessionAllowed" value="false"/>
</bean>

link publish delete flag offensive edit

answered 2009-05-07 16:29:52 +0800

james gravatar image james
255 2

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

link publish delete flag offensive edit

answered 2009-05-07 22:54:12 +0800

james gravatar image james
255 2

updated 2009-05-07 22:54:31 +0800

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>

But it goes to /zkau everytime i log in. I get successfully logged in though. So when i log in, i go to /zkau i can type the address of a file/page that is restricted and access it just fine. log out, log in and go right to the /zkau page again. So that ended up not really fixing it.
Does anyone have any other ideas?

link publish delete flag offensive edit

answered 2009-05-08 04:14:16 +0800

V gravatar image V
33

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>

link publish delete flag offensive edit

answered 2009-05-08 15:03:14 +0800

james gravatar image james
255 2

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?

link publish delete flag offensive edit

answered 2009-05-13 14:05:38 +0800

james gravatar image james
255 2

Can someone please help me with this problem?
Has anyone else experienced this problem? ... being redirected to /zkau
How might I be able to fix this problem?

Thank you for any help that may be given.
-James

link publish delete flag offensive edit

answered 2021-01-17 12:18:03 +0800

hmannam gravatar image hmannam
153 2

Is the issue resolved?

link publish delete flag offensive edit

answered 2021-01-17 12:18:53 +0800

hmannam gravatar image hmannam
153 2

Is the issue resolved?

link publish delete flag offensive edit

Question tools

Follow
1 follower

RSS

Stats

Asked: 2009-05-01 18:41:02 +0800

Seen: 493 times

Last updated: Jan 18 '21

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More