Re: Struggling with basic database connection

2006-10-01 Thread Martin Gainty
- From: "Alan Chandler" <[EMAIL PROTECTED]> To: Sent: Sunday, October 01, 2006 1:42 PM Subject: Re: Struggling with basic database connection > On Sunday 01 October 2006 17:27, John Najarian wrote: >> Alan, >> >> Did you ever resolve this? I don't h

Re: Struggling with basic database connection

2006-10-01 Thread Alan Chandler
On Sunday 01 October 2006 17:27, John Najarian wrote: > Alan, > > Did you ever resolve this? I don't have enough > information here to help you. ... Sort of ... The WTP plugin for eclipse copies what is in META-INF/context.xml and writes it into CATALINA_BASE/conf/server.xml. So for tomcat5

Re: Struggling with basic database connection

2006-10-01 Thread John Najarian
Alan, Did you ever resolve this? I don't have enough information here to help you. Thanks, John Najarian --- Alan Chandler <[EMAIL PROTECTED]> wrote: > On Saturday 23 September 2006 15:23, David Smith > wrote: > > Correction: context.xml belongs in META-INF of the > war archive. > > > > I

Re: Struggling with basic database connection

2006-09-24 Thread Alan Chandler
On Saturday 23 September 2006 15:23, David Smith wrote: > Correction: context.xml belongs in META-INF of the war archive. > I have just conducted experiments with Tomcat 5.0 putting a context.xml file in META-INF doesn't appear to work I have not been having success with putting in conf/server.x

Re: Struggling with basic database connection

2006-09-23 Thread Martin Gainty
ne or email and destroy the original message without making a copy. Thank you. - Original Message - From: "Alan Chandler" <[EMAIL PROTECTED]> To: Sent: Saturday, September 23, 2006 12:48 PM Subject: Re: Struggling with basic database connection > On Saturday 23 Sep

Re: Struggling with basic database connection

2006-09-23 Thread Alan Chandler
On Saturday 23 September 2006 15:23, David Smith wrote: > Correction: context.xml belongs in META-INF of the war archive. OK, I am begining to comprehend - and knowledge about the context.xml in the META-INF file for a WAR archive is good. I was looking for a way to wrap all the info about the

Re: Struggling with basic database connection

2006-09-23 Thread David Smith
Correction: context.xml belongs in META-INF of the war archive. --David Henry McClain wrote: There are two pieces of information about the Context file while deploying your application as a WAR that the Tomcat documentation fails to make absolutely clear: 1) the Context file name must be "con

Re: Struggling with basic database connection

2006-09-23 Thread Henry McClain
There are two pieces of information about the Context file while deploying your application as a WAR that the Tomcat documentation fails to make absolutely clear: 1) the Context file name must be "context.xml"; do not attempt to name it anything else. 2) put the file in the /WEB-INF folder of the

Re: Struggling with basic database connection

2006-09-23 Thread Andrew Stepanenko
Hello, looks like the docs I gave a link to describe the old approach, sorry. Here is what I have in my context.xml: ## WEB-INF/web.xml # also, the format of has been changed. Now, all configuration data should be provided as attributes and not nested tags. Regards, Andre

Re: Struggling with basic database connection

2006-09-23 Thread Alan Chandler
On Saturday 23 September 2006 09:57, Andrew Stepanenko wrote: > Hello, > > there is a difference between how resources are defined in 5.0 and > 5.5. In 5.0 you could provide your resource definitions right in the > server.xml, but in 5.5 you need to create a separate context.xml file > ($CATALINA_H

Re: Struggling with basic database connection

2006-09-23 Thread Andrew Stepanenko
Hello, there is a difference between how resources are defined in 5.0 and 5.5. In 5.0 you could provide your resource definitions right in the server.xml, but in 5.5 you need to create a separate context.xml file ($CATALINA_HOME/conf/Catalina//context.xml) and put resource definitions there. See

Struggling with basic database connection

2006-09-23 Thread Alan Chandler
I am struggling to figure out why my Tomcat installation is failing to allow me to connect my java web application to a database. I am looking for ideas as to how to find out what is wrong. I have (what I think) is the same setup on another machine and it works fine. The only difference betwe