Eclipse threw the following exception
java.sql.SQLException: Driver "com.mysql.jdbc.Driver" does not support the url "null"
Here is my context.xml:
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/advancedweb">
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="com.mysql.jdbc.Driver"
connectionUrl="jdbc:mysql://localhost:3306/saketramdurbha_test"
connectionName="root" connectionPassword="pass"
userTable="adminspass" userNameCol="Username" userCredCol="Password"
userRoleTable="adminsrole" roleNameCol="Rolename" />
</Context>
connectionUrl
should be connectionURL
, like
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/advancedweb">
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://localhost:3306/saketramdurbha_test"
connectionName="root" connectionPassword="pass"
userTable="adminspass" userNameCol="Username" userCredCol="Password"
userRoleTable="adminsrole" roleNameCol="Rolename" />
</Context>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.