我在基于表单的身份验证中使用jdbc但是当我在server.xml文件中添加带有连接属性的realm标记时,tomcat没有启动:
<Realm className="org.apache.catalina.realm.JDBCRealm"
driverName="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc:oracle:thin:@localhost:1521:XE"
connectionName="system"
connectionPassword="system"
userTable="users" userNameCol="username" userCredCol="password"
userRoleTable="user_roles" roleNameCol="rolename"/>