tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Delbecq <delbd+jaka...@oma.be>
Subject Re: Configuring DataSourceRealm using Oracle
Date Mon, 03 Mar 2008 18:11:44 GMT
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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message