1

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>

1 Answer 1

2

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>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.