2010-11-10 6 views
1

J'ai besoin de config domaine sur tomcat 6 pour oracle 11g pour travailler pour le flux de travail jBPM.domaine de configuration sur Tomcat 6, Oracle 11g exception

Je créé un fichier: jbpm-console.xml sous Catalina/localhost comme ceci:

<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> 

Quand je tente de me connecter jBPM je reçois l'exception:

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) 

Qu'est-ce que je config mal dans le fichier Realm? Pourquoi reçois-je ce message?

Répondre

2

J'ai eu le même problème. Placez les bibliothèques JDBC nécessaires (par exemple classes12.jar) dans le répertoire tomcat/lib.