Re: JDBCRealm, Tomcat and MySQL
Pid-2 wrote: > > > Tomcat version? > > Are you sure you can connect to the database using the db user/pass > you've specified? > > > p > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > Apache Tomcat 6.0.18 I'm sure that db user and password are correct. -- View this message in context: http://www.nabble.com/JDBCRealm%2C-Tomcat-and-MySQL-tp23349009p23354551.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
JDBCRealm, Tomcat and MySQL
Hi all I have a problem with authorization based on JDBCRealm. When I'm trying to get access to some html page which is store in protected directory all that I can see is just login-error.jsp page. I'm using login and password from my database. My server.xml: factory org.apache.commons.dbcp.BasicDataSourceFactory maxActive 10 maxIdle 5 validationQuery SELECT 1 testOnBorrow true testWhileIdle true timeBetweenEvictionRunsMillis 1 minEvictableIdleTimeMillis 6 username root password ubk driverClassName com.mysql.jdbc.Driver url jdbc:mysql://localhost:3306/wypozyczalnia My webapp web.xml: http://java.sun.com/xml/ns/javaee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";> 5 index.jsp WstepWzbroniony pliki /pliki/* admin FORM /login.jsp /login-error.jsp admin I have no idea what's wrong. It's my first time with sth bigger in webapps. I'm rookie. I'm using Netbeans. -- View this message in context: http://www.nabble.com/JDBCRealm%2C-Tomcat-and-MySQL-tp23349009p23349009.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org