This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I created a web application and i deployed it on Tomcat. I'm trying to manage the access to private areas with a realm DB accessed via a JNDI named JDBCDataSource. I can successfully access the DataSource but securyty constraints do not work correctly: i am asked a username and password but none is accepted.
That's what i did: - i've created two tables in the DB: one with usernames and passwords and the other with usernames and roles -i configured a a JNDI named JDBC DataSource for your database (this seems to work -i set up a <Realm> element in $CATALINA_HOME/conf/server.xml: