In server.xml file, you'd have Context element for your web application (which is under Server->Service->Engine->Host->Context). Make sure that JNDI resources are configured in this context element. In the web.xml file of your application, you can refer these resources with environment entry <env-entry> for these resources. You also need to make sure that your JDBC driver class libraries are placed under TOMCAT_HOME\common\lib.
Here is more information on JNDI resources: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.htm l - Deepak. -----Original Message----- From: Jeff [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 29, 2004 10:56 AM To: [EMAIL PROTECTED] Subject: Re: Databases in Axis Oh, you're using JNDI. I have never bothered with JNDI DataSources. I find that straight JDBC works fine for me. I guess you need to update <Tomcat>/webapps/axis/WEB-INF/web.xml and generally mess around until it works. I'm sure someone else will be able to put you right. Jeff ----- Original Message ----- From: "Hubble, Christopher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 29, 2004 1:49 PM Subject: RE: Databases in Axis > I have a context like what is shown in > http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples -how > to.html However, I can't figure out what the path and docBase parameters > should be. They were originally pointing to a directory in tomcat's webapps > dir. > > Chris > > -----Original Message----- > From: Jeff [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 29, 2004 1:43 PM > To: [EMAIL PROTECTED] > Subject: Re: Databases in Axis > > > Not really clear what you are trying to do... > > "I tried copying over the info from the old server.xml file" > > What info? > > > Jeff > > > ----- Original Message ----- > From: "Hubble, Christopher" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, September 29, 2004 1:42 PM > Subject: RE: Databases in Axis > > > > I looked at the info in the wiki and it didn't seem to have the info I > > wanted. The servlet will be going away as soon as the web service is > > finished. I tried copying over the info from the old server.xml file, but > I > > keep getting NameNotFoundException: Name jdbc is not bound in this > Context. > > The path in the server.xml file for the database was originally pointing > to > > the servlet dir in tomcats webapps dir. However, since I'm now using > axis, > > what do I change the path to? Does it become > \axis\web-inf\classes\original > > dir? > > > > Chris > > > > -----Original Message----- > > From: Keith Tingle [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, September 29, 2004 1:38 PM > > To: '[EMAIL PROTECTED]' > > Subject: RE: Databases in Axis > > > > > > If you question is how to get to the servlet context from an axis handler > > its covered in the wiki. > > > > http://nagoya.apache.org/wiki/apachewiki.cgi?AxisProjectPages > > > > > > -----Original Message----- > > From: Hubble, Christopher [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, September 29, 2004 1:32 PM > > To: '[EMAIL PROTECTED]' > > Subject: RE: Databases in Axis > > > > > > -chuckle- What I'm trying to do is convert the jdbc servlet connection I > > have over to work with the axis web service that's replacing the old > > serlvet. > > > > Chris > > > > -----Original Message----- > > From: Jeff [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, September 29, 2004 1:27 PM > > To: [EMAIL PROTECTED] > > Subject: Re: Databases in Axis > > > > > > Just use JDBC but I suspect your question will be re-phrased! > > > > > > Jeff > > > > > > ----- Original Message ----- > > From: "Hubble, Christopher" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Wednesday, September 29, 2004 1:27 PM > > Subject: Databases in Axis > > > > > > > How do you configure a database in axis? > > > > > > Chris > > Payformance Corporation confidentiality statement > > > ************************************************************************ *** > > Notice: This e-mail message, including any attachments, is for the sole > > use of the intended recipient(s) and may contain confidential and > > privileged information. Any unauthorized review, copy, use, disclosure, > > or distribution is prohibited. If you are not the intended recipient, > > or not an agent of the intended recipient responsible for delivering this > > message, please contact the sender by reply e-mail and destroy all copies > > of the original message.
