-----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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]