-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Chris,
i followed your suggestion and removed the <resource-ref> from web.xml and the good news is, that hibernate using the datasource is still working, but ... i still run into the same error 83743 [http-8080-Processor25] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/jmangos] - Exception performing authentication javax.naming.NameNotFoundException: Name jdbc is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:769) at org.apache.naming.NamingContext.lookup(NamingContext.java:152) at org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:401) at org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java:282) On the tomcat jndi-datasource-example-howto is written: "In order to get Realms to work, the realm must refer to the datasource as defined in the <GlobalNamingResources> or <Context> section, not a datasource as renamed using <ResourceLink>." That`s what i have, a Realm and a Datasource defined in the same <Context> section, but it`s not working. If i define the datasource in <GlobalNamingResources> and <ResourceLink> the datasource to my <Context>, then it is working, but that should not work, due to the jndi-datasource-example-howto. Could this be a bug in Tomcat 5.5.20? At Marc i found this error a couple of times, but not a real solution. Regards Oliver > -----Ursprüngliche Nachricht----- > Von: Christopher Schultz [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 29. Januar 2007 18:44 > An: Tomcat Users List > Betreff: Re: datasource-realm troubles > > 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-exampl > es-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 > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -----BEGIN PGP SIGNATURE----- Version: SECUDE secure mail 4.0.2.13 Comment: SECUDE Office Security Suite - http://www.secude.com iQCVAwUBRb9CZQecYaTxJzwZAQKCjAP/a1jKKQ0LoSw/IKs/yWkMPaaCyExv3G49Yoso3i/5 zNLiP1CbomGGoZSiIJi/isuDUdDbDAs7tTtyJurM8xPoQ/0k52i6+JPjNUWjjk8+9LLwXk5l 23zW3GrcI+A1vJ+XRUszW9r3A+B2EAXBhEEDcEe/fQQoyOfFuJHk0eWRqs8= =F8rI -----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]