title: Placing MySQL connector JAR in WEB-INF/lib of my WAR instead of in tomcat lib making j_security_check fail
body: <p>I want my webapp to use the MySQL connector JAR present in web-inf/lib . But j-security_check dosen't work when i do it. When I place the jar in tomcat lib folder it works fine. But I have purchased a shared tomcat hosting and they wouldn't let me put a jar in tomcat lib.
  Is it possible to use j_security_check and connection pool without the jar in tomcat lib.</p>
  
  <p>Following is my META-INF/context.xml
  
  </p>
  
  <pre><code>&lt;Resource name="jdbc/myDB" auth="Container" type="javax.sql.DataSource"
            maxActive="600" maxIdle="30" maxWait="20000" removeAbandoned="true" logAbandoned="false"
            username="usr_1" password="password1" driverClassName="com.mysql.jdbc.Driver"
            url="jdbc:mysql://localhost:3306/daname?autoReconnect=true"/&gt;
  
  
  &lt;Realm name="myRealm" className="org.apache.catalina.realm.DataSourceRealm" debug="99"
         dataSourceName="jdbc/myDB" localDataSource="true"
         userTable="user" userNameCol="username" userCredCol="pass"
         userRoleTable="user_roles" roleNameCol="role_name"/&gt;
  </code></pre>
  
  <p></p>