我想讓我的webapp使用web-inf / lib中的MySQL連接配接器JAR。但是當我這樣做時,j-security_check不能工作。當我把jar放在tomcat lib檔案夾中時,它工作正常。但我已經購買了一個共享的Tomcat主機,他們不會讓我把一個jar放在tomcat lib中。
是否有可能在tomcat lib中使用沒有jar的j_security_check和連接配接池。
以下是我的META-INF / context.xml
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"/>
dataSourceName="jdbc/myDB" localDataSource="true"
userTable="user" userNameCol="username" userCredCol="pass"
userRoleTable="user_roles" roleNameCol="role_name"/>