Hello Chris,
Thanks very much for your answer.

Yes I am currently using MemoryRealm and I want to use DataSourceRealm instead.
I am using tomcat 5.0

I copied the Mysql Driver's jar into $CATALINA_HOME/common/lib.
I already created the database with the required tables user,
user-roles and roles.
I configured JNDI DataSource in Tomcat by adding a declaration for my
resource named jdbc/oaso into a Context path to
$CATALINA_HOME/conf/server.xml.
I configured the <security-constraint> on the web.xml
I added the <resource-ref> to the jdbc/oaso into the web.xml




On 5/24/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Paulo,

Paulo Vivacqua wrote:
> I am having difficulty implementing a Datasource realm for my
> application. I followed some tutorials but could not make it to work.I
> already posted this issue on other forums but I got no answer.
>
> The application Instead of pulling out data from the MySQL database
> it´s getting the user information from the tomcat-users.xml
> (MemoryRealm)

So... you are currently using MemoryRealm and you want to use
DataSourceRealm instead?

What version of Tomcat are you using?

What have you tried already? Posting configuration without telling us
what else you know isn't very helpful :(

- -chris

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

iD8DBQFGVarm9CaO5/Lv0PARApCKAJ9T31kPWmqWi7Qqj+dKQCFZp44CegCfTOdL
EQKleoWdZtWgU7j8lDzycPg=
=G1yI
-----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]




--
Paulo Vivacqua
[EMAIL PROTECTED]
msn: [EMAIL PROTECTED]

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