-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
i have problem hosting my ZK app online, on every first page visit a blank page is displayed.
After F5, refresh, application is started normally.
Application fails to start because page resource requests ended in 404 file not found error.
(zk.wcs, zk.wpd, zul.lang, zul.breeze)
Every first visit/request to the page,
while jsession cookie is not set,
application elements (wcs, wpd) are loaded with jsessionid parameter in URI
and several of those requests ends in 404 error.
This is also tested with basic test application, empty ZK project.
When deployed locally on tomcat 6 all runs without errors, both basic tests and real app.
I have noticed while running ZK 6.0.0, then tried with 6.0.1 and was the same, and then 5.0.11, the same problem.
Any ideas anybody?
Zeljko
depending on your tomcat version there's either a legacy mechanism or a web.xml based configuration, summarized here:
https://fralef.me/tomcat-disable-jsessionid-in-url.html
or here
https://stackoverflow.com/questions/962729/is-it-possible-to-disable-jsessionid-in-tomcat-servlet
from tomcat 7+ add this to your web.xml, which will disable the JSESSIONID in the URL
<session-config>
<tracking-mode>COOKIE</tracking-mode>
</session-config>
Asked: 2012-05-06 15:01:19 +0800
Seen: 156 times
Last updated: Nov 19 '19