我需要在tomcat 6上配置域,以便oracle 11g适用于jBPM工作流。
所以我在Catalina / localhost下创建了一个文件:jbpm-console.xml
,如下所示:
<Context>
<Realm className="org.apache.catalina.realm.JDBCRealm"
driverName="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc:oracle:thin:@myip:1524:mydb"
connectionName="jbpm"
connectionPassword="jbpm"
userTable="JBPM_ID_USER u, JBPM_ID_MEMBERSHIP m, JBPM_ID_GROUP g"
userNameCol="g.TYPE_ = 'security-role' AND m.GROUP_ = g.ID_ AND m.USER_ = u.ID_ AND u.NAME_"
userCredCol="DISTINCT u.PASSWORD_"
userRoleTable="JBPM_ID_USER u, JBPM_ID_MEMBERSHIP m, JBPM_ID_GROUP g"
roleNameCol="g.NAME_" ></Realm>
</Context>
当我尝试登录jBPM
时,我得到了例外:
SEVERE: Exception performing authentication
java.sql.SQLException: oracle.jdbc.driver.OracleDriver
at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:704)
at org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:358)
at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:259)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:454)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
我在Realm文件中配置错误了什么?为什么我收到此消息?
答案 0 :(得分:2)
我遇到了同样的问题。将必要的JDBC库(例如classes12.jar)放在tomcat/lib
目录中。