I deployed my GWT app, that uses SpringSecurity, and have a problem.
After feeding the credentials it logs out immediately. If I put in the wrong credentials, it says 'wrong credentials', but when I give correct ones it just goes back to the login screen. (So mysql connection works)
My set up is like this: Apache 2 fronting Tomcat6 on Ubuntu 10.04.2 LTS. I use mod_jk in between.
I've never used this mod_jk thing before, normally I have a standalone Tomcat, but requirements oblige me to use this now.
Q: Can it be that the Tomcat Session doesn't remember that a user is logged in, due to some mod_jk config stuff that I am missing? The requests are forwarded, so mod_jk seems to work fine.
Please provide me some hints where to look! Or should it be working already? Just wanting to know if there are standard procedures to take to make SpringSecurity work in a setup like this.
I followed the following tutorial to install mod_jk, and have the configuration exactly as discussed in that tutorial: http://www.howtoforge.com/how-to-install-tomcat6-with-sun-java-and-apache2-integration-on-ubuntu-10.04-lucid-lynx-with-virtual-hosts
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" URIEncoding="UTF-8" redirectPort="8443" />) – Marten Sytema Jun 14 '11 at 12:40