The moose likes Security and the fly likes can't login with correct username and password Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » Security
Reply Bookmark "can Watch "can New topic
Author

can't login with correct username and password

Jeroen Nouws
Greenhorn

Joined: Jul 14, 2011
Posts: 17
Hi guys,

i'm building a webapp with a protected area i've defined a security constraint in web.xml and use a datasource realm which i defined in context.xml

below you'll find excerpts from the code in both web.xml and context.xml

can anyone see if there's something wrong?

thanks a lot



web.xml

Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 13842

I'm not especially familiar with those files, but is the main element of the first one really supposed to be named "Contex" and not "Context"?
Jeroen Nouws
Greenhorn

Joined: Jul 14, 2011
Posts: 17
oh god i feel stupid right now
but thank you for pointing it out
so this one's for you
 
 
subject: can't login with correct username and password
 
Threads others viewed
web.xml security constraint won't work with roles
Tomcat BASIC Authentication Problem.
Cannot Connect to database using datasource realm
security constraint
action="j_security_check"
developer file tools