-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm not positive about this, but I think your <Resource>
declaration will need to be in server.xml in order to be used for a
<Realm> (even though the <Realm> is specific to just one
<Context>). The authentication is done by Tomcat, not the webapp,
so it's Tomcat that has to have the database declaration available,
not the webapp.
Well, yes.. that is logic. ;-)
Likewise, the driver jar for the database needs to be in Tomcat's
lib directory, not the webapp's. And, the <resource-ref> isn't
needed, since the <Resource> is not being used by the webapp itself.
- Chuck
Well, yes I do need it, so I moved the <Resource> to the server.xml
AND added
- ---
<ResourceLink auth="Container" name="jdbc/pgsql"
type="javax.sql.DataSource" global="jdbc/pgsql" />
- ---
to the context.xml
And it works :-)
Thanks a lot
MaxX
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
iEYEARECAAYFAkvsZDEACgkQ/6VVXRqA3ifBugCfaIk7+qOMj/Tmo1Urf6BLzvsY
G/AAoNmDOAuunBhKV1TwLkHVXAsTrlby
=g7Tt
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org