File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Security and the fly likes can't login with correct username and password Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
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
Sheriff

Joined: Oct 14, 2005
Posts: 19458
    
  10

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can't login with correct username and password