tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: datasource-realm troubles
Date Mon, 29 Jan 2007 17:44:00 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Oliver,

Walter, Oliver (BR/ICI3) wrote:
> In META-INF/Context.xml i defined a datasource:
> 
> <Resource name="jdbc/mangos"

[snip]

> and in web.xml a resource reference:
> 
> <resource-ref>

[snip]

> With hibernate everything works fine, no problems, but if i define a
> datasource realm in Context.xml
> 
> <Realm dataSourceName="jdbc/mangos"

The very bottom of this page says that with a <Realm> defined in
context.xml, you must use a JNDI DataSource defined in
<GlobalNamingResources>, not one that has been <resource-ref>'d into
your webapp:

http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html

Since you /are/ defining your <Resource> in your context.xml file, I
don't think you need the <resource-ref>. It may be confusing things. (??)

- -chris

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

iD8DBQFFvjJg9CaO5/Lv0PARAtg+AKCuupNMHcG674pWY3Un4vic1X4W9ACgkKbT
BkHHXRVFMmI6U3mQqtBcbEE=
=t8Sv
-----END PGP SIGNATURE-----

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