[英]Driver “com.mysql.jdbc.Driver” does not support the url “null”
Eclipse threw the following exception Eclipse抛出以下异常
java.sql.SQLException: Driver "com.mysql.jdbc.Driver" does not support the url "null"
Here is my context.xml: 这是我的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 connectionUrl
应该是connectionURL
,例如
<?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>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.