• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat 7 & j_security_check

 
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I have just been trying s little play around with Tomcat 7 and using the j_security_check security contraints with MySQL (see this tutorial: http://marakana.com/blog/examples/java/securing-java-web-applications-using-form-based-container-managed-security.html)

The problem is, when I goto the login.jsp and click 'submit' the first time, it just reloads the login.jsp page, the next time I get a 404 error:-

HTTP Status 404 - /webroot/j_security_check

type Status report

message /webroot/j_security_check

description The requested resource (/webroot/j_security_check) is not available.
Apache Tomcat/7.0.2



Has this functionality changed in Tomcat 7 to previous versions?

Any tips greatly appreciated.

Cheers in advance

KS
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yesterday I fight with same problem. Problem for me was that nothing was mapped to /j_security_check (servlet or page). I had only mapping with some servlets like '*.html', '*.jsp', '*.js', ... but none match /j_security_check. Because of this tomcat 7 decide not to start even filters which should be started '/*' (filter mapping isn't enough for tomcat 7). I add following line to web.xml and everything start to work:
 
reply
    Bookmark Topic Watch Topic
  • New Topic