smccrory
Sep 15th, 2004, 10:08 PM
No big revelation - just posting it in case someone else runs into the same problem. My Acegi-protected app was working great inside of Eclipse and Tomcat 5, but when I deployed it to my QA environment (also Tomcat 5), I couldn't login. Was getting a 404 (File not found) error on j_acegi_security_check. The answer (and solution) turned out to be simple.
In eclipse, I'm actually testing againt Tomcat itself, while in QA I'm going through Apache and mod_jk to get to Tomcat. Seems that I forgot to update my mod_jk workers2.properties so that it would recognize not only JSPs and servlets, but also j_acegi_security_check. Adding this and restarting Apache did the trick:
[uri:/myapp/j_acegi_security_check]
info=Map Acegi's login URL
HTH,
Scott
In eclipse, I'm actually testing againt Tomcat itself, while in QA I'm going through Apache and mod_jk to get to Tomcat. Seems that I forgot to update my mod_jk workers2.properties so that it would recognize not only JSPs and servlets, but also j_acegi_security_check. Adding this and restarting Apache did the trick:
[uri:/myapp/j_acegi_security_check]
info=Map Acegi's login URL
HTH,
Scott