Jason Ling a écrit :

I changed the <Realm> element in the server.xml file, and it became:

      <Realm  className="org.apache.catalina.realm.DataSourceRealm"
         dataSourceName="jdbc/webappDB"
             driverName="oracle.jdbc.OracleDriver"
          connectionURL="jdbc:oracle:thin:@sb.lehman.cuny.edu:1521:idm0"
         connectionName="webappdb" connectionPassword="GreenHorn"
              userTable="users" userNameCol="user_name"
userCredCol="user_pass"
          userRoleTable="user_roles" roleNameCol="role_name" />

your are using the datasourcerealm with parameters from the jdbcrealm, those are two separate realms. For datasource realm, you need to define a datasource that matches the one specified in

dataSourceName="jdbc/webappDB"

To get more information on how to configure a datasource, please go there: http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to