Re: Tomcat 4.0.4, jndi, jdbc and postgresql [long]

2002-07-11 Thread peter . catania
hello Przemyslaw, les, On Wed, 03 Jul 2002 05:11:44 -0700 , Przemyslaw wrote: On Tuesday 02 July 2002 16:27, Les Hughes wrote: Ok. Summary time. Martin reflects my experience - I dumped tyrex and used DBCP as well. But aren't we trying to go direct without a pool? Having said that I've only

RE: Tomcat 4.0.4, jndi, jdbc and postgresql [long]

2002-07-04 Thread Les Hughes
The model is very simple and as a coder you never see that DBCP is there instead of Tyrex or a direct connection. Let me know how you get on an I'll patch the documentation accordingly. Also I noticed that my howto has made it into CVS (thanks guys!) so if you grab a nightly build (probably

Re: Tomcat 4.0.4, jndi, jdbc and postgresql [long]

2002-07-03 Thread Przemyslaw Kowalczyk
On Tuesday 02 July 2002 16:27, Les Hughes wrote: Ok. Summary time. Martin reflects my experience - I dumped tyrex and used DBCP as well. But aren't we trying to go direct without a pool? Having said that I've only ever managed to get datasources working when DBCP is being used... Check

RE: Tomcat 4.0.4, jndi, jdbc and postgresql [long]

2002-07-02 Thread Les Hughes
Two things, In your server.xml user I think should be username and driverName has been deprecated in favour of url which needs the servername and DB name as well (as in something like jdbc:postgresql://full.server.name/mybookdb - or whatever the DB is called) Are you *sure* you're using the

Re: Tomcat 4.0.4, jndi, jdbc and postgresql [long]

2002-07-02 Thread Przemyslaw Kowalczyk
On Tuesday 02 July 2002 14:00, Les Hughes wrote: Two things, In your server.xml user I think should be username and driverName has been deprecated in favour of url which needs the servername and DB name as well (as in something like jdbc:postgresql://full.server.name/mybookdb - or

RE: Tomcat 4.0.4, jndi, jdbc and postgresql [long]

2002-07-02 Thread andre . powroznik
Would you have other applications running in tomcat? -Original Message- From: Przemyslaw Kowalczyk [mailto:[EMAIL PROTECTED]] Sent: 02 July 2002 14:54 To: Tomcat Users List Subject: Re: Tomcat 4.0.4, jndi, jdbc and postgresql [long] On Tuesday 02 July 2002 14:00, Les Hughes wrote: Two

Re: Tomcat 4.0.4, jndi, jdbc and postgresql [long]

2002-07-02 Thread Przemyslaw Kowalczyk
On Tuesday 02 July 2002 14:53, Przemyslaw Kowalczyk wrote: I came to another conclusion. Even if there was some reference to hsql driver in my server.xml it shouldn't affect my own servlet, as it uses its own context. Am I right? przem -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]

RE: Tomcat 4.0.4, jndi, jdbc and postgresql [long]

2002-07-02 Thread andre . powroznik
Is this normal : resource-ref res-ref-namejdbc/BookDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainter/res-auth /resource-ref More especially : res-authContainter/res-auth : CONTAINTER? Andre Powroznik

RE: Tomcat 4.0.4, jndi, jdbc and postgresql [long]

2002-07-02 Thread Les Hughes
Yep :-) Oh, I think there's a typo in the URL - remove the two // - this is all driver specific so it's a case of RTM :-) -Original Message- From: Przemyslaw Kowalczyk [mailto:[EMAIL PROTECTED]] Sent: 02 July 2002 14:00 To: Tomcat Users List Subject: Re: Tomcat 4.0.4, jndi, jdbc

RE: Tomcat 4.0.4, jndi, jdbc and postgresql [long]

2002-07-02 Thread Les Hughes
this is optional) but other than that it's fine. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 02 July 2002 14:00 To: [EMAIL PROTECTED] Subject: RE: Tomcat 4.0.4, jndi, jdbc and postgresql [long] Is this normal : resource-ref res-ref

Re: Tomcat 4.0.4, jndi, jdbc and postgresql [long]

2002-07-02 Thread Przemyslaw Kowalczyk
On Tuesday 02 July 2002 14:56, [EMAIL PROTECTED] wrote: Would you have other applications running in tomcat? No, I've just started to learn, so there are other apps. przem -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Tomcat 4.0.4, jndi, jdbc and postgresql [long]

2002-07-02 Thread Przemyslaw Kowalczyk
On Tuesday 02 July 2002 15:00, [EMAIL PROTECTED] wrote: Is this normal : resource-ref res-ref-namejdbc/BookDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainter/res-auth /resource-ref More especially :

RE: Tomcat 4.0.4, jndi, jdbc and postgresql [long]

2002-07-02 Thread Les Hughes
:[EMAIL PROTECTED]] Sent: 02 July 2002 14:13 To: Tomcat Users List Subject: Re: Tomcat 4.0.4, jndi, jdbc and postgresql [long] On Tuesday 02 July 2002 15:00, [EMAIL PROTECTED] wrote: Is this normal : resource-ref res-ref-namejdbc/BookDB/res-ref-name

Re: Tomcat 4.0.4, jndi, jdbc and postgresql [long]

2002-07-02 Thread Przemyslaw Kowalczyk
On Tuesday 02 July 2002 15:06, Les Hughes wrote: web-app resource-ref descriptionDB Connection/description res-ref-namejdbc/TestDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app The description is missing

RE: Tomcat 4.0.4, jndi, jdbc and postgresql [long]

2002-07-02 Thread andre . powroznik
Do you have already connected to a postgresql db using a java app? Are you sure the parameters are correct? What is public? Where did you put the postgresql.jar? Do you have a file named hsql.jar? Can you remove it? -Original Message- From: Przemyslaw Kowalczyk [mailto:[EMAIL

Re: Tomcat 4.0.4, jndi, jdbc and postgresql [long]

2002-07-02 Thread Martin Jacobson
Les Hughes wrote: Ignore the remove // comment - I was looking at my oracle notes :-) I really have no idea why it's trying to load the hsql driver if there's no ref in your server.xml Post your server.xml and web.xml and we'll both have a look. I struggled for weeks (on and off)

Re: Tomcat 4.0.4, jndi, jdbc and postgresql [long]

2002-07-02 Thread Przemyslaw Kowalczyk
On Tuesday 02 July 2002 15:16, Les Hughes wrote: Ignore the remove // comment - I was looking at my oracle notes :-) I really have no idea why it's trying to load the hsql driver if there's no ref in your server.xml Ok, the full versions (I cut off all comments): przem server.xml

Re: Tomcat 4.0.4, jndi, jdbc and postgresql [long]

2002-07-02 Thread Przemyslaw Kowalczyk
On Tuesday 02 July 2002 15:43, [EMAIL PROTECTED] wrote: Do you have already connected to a postgresql db using a java app? Are you sure the parameters are correct? What is public? Where did you put the postgresql.jar? Yes, without any problems from 'standalone' application. I'm able to query

RE: Tomcat 4.0.4, jndi, jdbc and postgresql [long]

2002-07-02 Thread Les Hughes
/parameter /ResourceParams -Original Message- From: Przemyslaw Kowalczyk [mailto:[EMAIL PROTECTED]] Sent: 02 July 2002 14:53 To: Tomcat Users List Subject: Re: Tomcat 4.0.4, jndi, jdbc and postgresql [long] On Tuesday 02 July 2002 15:43, [EMAIL PROTECTED] wrote: Do you

Re: Tomcat 4.0.4, jndi, jdbc and postgresql [long]

2002-07-02 Thread Brian P. Millett
On Tue, 2002-07-02 at 08:47, Przemyslaw Kowalczyk wrote: On Tuesday 02 July 2002 15:16, Les Hughes wrote: Ignore the remove // comment - I was looking at my oracle notes :-) I really have no idea why it's trying to load the hsql driver if there's no ref in your server.xml Ok, the full

Re: Tomcat 4.0.4, jndi, jdbc and postgresql [long]

2002-07-02 Thread Arshad Mahmood
Hi, I notice that you are doing the JDBC lookup in the init function. This doesn't appear to work properly (at least on 4.1.6), move the initialisation code to the doGet/doPost and see if that helps. This cured my JNDI/JDBC problems. Regards. - Original Message - From: Przemyslaw

Re: Tomcat 4.0.4, jndi, jdbc and postgresql [long]

2002-07-02 Thread Nikola Milutinovic
Neither adding description nor removing slashes helped. I've checked the path in manual: jdbc:postgresql:database jdbc:postgresql://host/database jdbc:postgresql://host:port/database This last form is the most complete one. Anyway, that will not make a difference, since it is up to