Re: Trouble with context and JNDI resource

2009-11-03 Thread Carsten Pohl
downtime for your users). Regards, Carsten Pohl - Original Message - From: "Mikolaj Rydzewski" To: "Tomcat Users List" Sent: Tuesday, 3 November, 2009 15:55:07 GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna Subject: Re: Trouble with context and

Re: Trouble with context and JNDI resource

2009-11-03 Thread Mikolaj Rydzewski
Martin Gainty wrote: i would set the PGDATA environment var to point to exact location of Postgres Database directory e.g (pg_ctl -D, --pgdata DATADIR) before attempting connect to Postgres Since we use TCP/IP to talk to postgres PGDATA is irrevelant (at client side). -- Mikolaj Rydzewski

RE: Trouble with context and JNDI resource

2009-11-03 Thread Martin Gainty
manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Tue, 3 Nov 2009 15:30:12 +0100 > From: p...@tyntec.com > To: users@tomcat.apache.org > Subject: Re: Trouble with context and JNDI resource > > My context.xml is quite straigh

Re: Trouble with context and JNDI resource

2009-11-03 Thread Mikolaj Rydzewski
Mike Baranski wrote: Yes, I know, what's the convention for doing this without changing the context.xml and restarting tomcat? Put context.xml in META-INF directory of your webapp. -- Mikolaj Rydzewski - To unsubscribe,

RE: Trouble with context and JNDI resource

2009-11-03 Thread Mike Baranski
Yes, I know, what's the convention for doing this without changing the context.xml and restarting tomcat? >-Original Message- >From: Carsten Pohl [mailto:p...@tyntec.com] >Sent: Tuesday, November 03, 2009 9:30 AM >To: Tomcat Users List >Subject: Re: Trouble with conte

Re: Trouble with context and JNDI resource

2009-11-03 Thread Carsten Pohl
Message - From: "Mike Baranski" To: "Tomcat Users List" , p...@tyntec.com Sent: Tuesday, 3 November, 2009 15:15:45 GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna Subject: RE: Trouble with context and JNDI resource OK, thanks, what does your context.xml lo

RE: Trouble with context and JNDI resource

2009-11-03 Thread Mike Baranski
That worked, thanks. >-Original Message- >From: Mikolaj Rydzewski [mailto:m...@ceti.pl] >Sent: Tuesday, November 03, 2009 9:11 AM >To: Tomcat Users List >Subject: Re: Trouble with context and JNDI resource > >Mike Baranski wrote: &

RE: Trouble with context and JNDI resource

2009-11-03 Thread Mike Baranski
OK, thanks, what does your context.xml look like for the jdbc/progress? >-Original Message- >From: Carsten Pohl [mailto:p...@tyntec.com] >Sent: Tuesday, November 03, 2009 9:03 AM >To: Tomcat Users List >Subject: Re: Trouble with context and JNDI resource > >Hi, > &

Re: Trouble with context and JNDI resource

2009-11-03 Thread Mikolaj Rydzewski
Mike Baranski wrote: Why not to use jdbc/proteus? Just to follow convention. I'd also rather use javax.sql.DataSource as type attribute. proteus The same, use jdbc/proteus. I have this code: l.debug("Created the

Re: Trouble with context and JNDI resource

2009-11-03 Thread Carsten Pohl
Source" You can try that. Regards, Carsten Pohl - Original Message - From: "Mike Baranski" To: "Tomcat Users List" Sent: Tuesday, 3 November, 2009 14:49:04 GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna Subject: Trouble with context and JND

Trouble with context and JNDI resource

2009-11-03 Thread Mike Baranski
I'm using this page, trying to get a resource in a java class: http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html I have this in context.xml: WEB-INF/web.xml I have this in web.xml: