I am testing this out on my local system, not on a .com.
Configured on Windows2K, Apache-AJP-Tomcat
Doing: pops up the authentication - userid/pw window, and works fine - connects with db.
When doing the auth. window pops up, but I can't authenticate! Looks like it's not talking to the db.
I got this working with WARP - that uses an <engine> in servlet.xml. Can't do this with AJP.
<!-- Because this Realm is here, an instance will be shared globally -->
<!--
=============== COMMENTED OUT TO MAKE USE JDBC/POSTGRESQL REALM ===================
<Realm className="org.apache.catalina.realm.MemoryRealm" />
-->
<!-- =============================================================== -->
<!-- === JDBC realm using postgresql === -->
<!-- =============================================================== -->
<Realm
className="org.apache.catalina.realm.JDBCRealm"
debug="99"
driverName="org.postgresql.Driver"
connectionName="postgres"
connectionPassword=""
connectionURL="jdbcostgresql://localhost:5432/tomcatusers"
userTable="users"
userNameCol="username"
userCredCol="password"
userRoleTable="userroles"
roleNameCol="rolename"/>
Configured on Windows2K, Apache-AJP-Tomcat
Doing: pops up the authentication - userid/pw window, and works fine - connects with db.
When doing the auth. window pops up, but I can't authenticate! Looks like it's not talking to the db.
I got this working with WARP - that uses an <engine> in servlet.xml. Can't do this with AJP.
<!-- Because this Realm is here, an instance will be shared globally -->
<!--
=============== COMMENTED OUT TO MAKE USE JDBC/POSTGRESQL REALM ===================
<Realm className="org.apache.catalina.realm.MemoryRealm" />
-->
<!-- =============================================================== -->
<!-- === JDBC realm using postgresql === -->
<!-- =============================================================== -->
<Realm
className="org.apache.catalina.realm.JDBCRealm"
debug="99"
driverName="org.postgresql.Driver"
connectionName="postgres"
connectionPassword=""
connectionURL="jdbcostgresql://localhost:5432/tomcatusers"
userTable="users"
userNameCol="username"
userCredCol="password"
userRoleTable="userroles"
roleNameCol="rolename"/>