-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Paulo,

Paulo Vivacqua wrote:
> Like I said before I am trying to setup a DataSourceRealm to
> authenticate users by pull out the user information from a MySQL
> database.

You should remove the MemoryRealm from your configuration if you are
going to use a DataSourceRealm.

> 2 - I also configured a JNDI named jdbc/oaso on TomCat Server
> Administration. I tested this connection through a DBCP and it´s
> working fine.
> 
> 3- I created a Realm inside the  server.xml to use the JNDI jdbc/oaso
> between the <Engine> tags

You have created a server-level data source. You need to remove
localDataSource="true" from your <Realm> configuration. That setting
means "this is a data source defined in this <Context>"... and you
haven't done that.

Finally, you should throw /all/ that configuration out of server.xml and
instead use <webapp>/META-INF/context.xml just like all the Tomcat 5.x
docs say.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGXHnS9CaO5/Lv0PARAv1SAKCScnUeBKkSvMF+UB2o331M24L0kwCgrDgj
Oq1bc8SMdIaBxQe/NVVhJcA=
=I9T3
-----END PGP SIGNATURE-----

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