I'm having a similar issue here: Configuring jdbcRealm in context.xml
Example configuration - My realm is nested in the context because I want it to be specific to the web application.
<Context>
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="9"
connectionName="username"
connectionPassword="password"
connectionURL="url"
driverName="com.ibm.db2.jcc.DB2Driver"
roleNameCol="PERMISSION"
userCredCol="PASSWORD"
userNameCol="USERID"
userRoleTable="ROLESTABLE"
userTable="USERSTABLE"/>
</Context>
The solution was to put the driver jar into tomcat/lib folder. If I put the db2 driver jar in that folder it works.
However, I would like to load the jar from the application/WEB-INF/lib so that I don't have to make changes to the Tomcat installation. The jar is there, but the authenticator can't seem to locate it.
Thanks!