authentication - Tomcat 6.x JDBC realm, classpath for driver problem -
I is shown below as set a JDBC in your META INF / Context.xml, and it works the problem is that the JDBC driver now $ Katalina_acoam / Lieb /
to be kept under can no way that I load the JDBC driver from somewhere else, such as WEB-INF / My webpage in lib /?
Meta-INF / Context.xml
& lt ;? XML version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Context & gt; & Lt; Realm className = "org.apache.catalina.realm.JDBCRealm" Driver Name = "org.postgresql.Driver" connectionURL = "jdbc: postgresql: // Damon / Testdibi" userTable = "users" userNameCol = "userName" userCredCol = " password "Connection =" xxxxx "connectionName =" xxxxx "userRoleTable =" user "Bhumikanamcol =" role "digest =" MD 5 "/ & gt; & Lt; / Context & gt;
I'm pretty sure you can not do that, no. The scope is present and managed out of the scope of any application. Consider the example, where two webpages were deployed, for example, with disputed drivers
If you make it to the need to keep your JDBC driver in your war, you must also Instead security management depends on Tomket.
Comments
Post a Comment