Just to add my 2 cents. I have found the only thing that consistently worked
for me is to declare the Realm and the  Datasource inside of
META-INF/context.xml if you
deploy war files, $TOMCAT_HOME/conf/Catalina/<host>/MyContext.xml if
you don't. Then
reference the datasource as normal in your web.xml

Good luck,
Vinny
 Ghetto Java:  http://www.xaymaca.com/roller/page/gj

On 2/25/06, umesh balasubramaniam <[EMAIL PROTECTED]> wrote:
> Connector/J is the newer mysql driver.
> http://www.mysql.com/products/connector/j/
>
> Umesh
>
> On 2/25/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
> >
> > > From: umesh balasubramaniam [mailto:[EMAIL PROTECTED]
> > > Subject: Re: JNDI Datasource Problem
> > >
> > > Try using connector/J and the configuration below:
> > >   <Resource name="jdbc/galleryDB" auth="Container" type="
> > > javax.sql.DataSource"/>
> > >
> > >                 <ResourceParams name="jdbc/galleryDB">
> >
> > No idea what connector/J is, but the question specifically pertained to
> > Tomcat 5.5, and there is no <ResourceParams> tag in that version:
> > http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html
> > http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.h
> > tml
> >
> > - Chuck
> >
> >
> > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> > MATERIAL and is thus for use only by the intended recipient. If you
> > received this in error, please contact the sender and delete the e-mail
> > and its attachments from all computers.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>


--
Ghetto Java: http://www.xaymaca.com/roller/page/gj

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to