Received: from mail28.scannet.dk (mail28.scannet.dk [194.255.42.28]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id eAS8ist23531 for ; Tue, 28 Nov 2000 03:44:54 -0500 (EST) (envelope-from larslind@systemudvikling.dk) Received: from systemudvikling.dk (213.237.38.131[213.237.38.131])by SCANNET03(MailMax 3.065) with ESMTP id 65631616 for ; Tue, 28 Nov 2000 09:45:03 +0100 WST Message-ID: <3A237130.7A158A6@systemudvikling.dk> Date: Tue, 28 Nov 2000 09:47:44 +0100 From: Lars Nielsen Lind X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: jdbc7.0-1.2.jar problems Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200011/258 X-Sequence-Number: 295 Hi. I have some problems with PostgreSQL 7.0.2 and JBuilder 4 Foundation and JavaServer Pages. My development platform is Red Hat 7.0 and JDK 1.3. When I try to compile my JavaBean (DatabaseHandler) it freeze's when it reach the no. 2 codeline (prints "1" - and thats it.): 1.) System.out.println("1"); 2.) conn = DriverManager.getConnection("jdbc:postgresql:testdatabase","user","1234"); 3.) System.out.println("2"); Where "user" = linux database admin, and "1234" = linux password. JBuilder never finishes the compile sequence....and when I use the JavaBean with JavaServer Pages I get a java.lang.NullPointerException. I start the PostgreSQL database server with this command: /usr/bin/postmaster -D -i /home/user/databaseserver I have added the following line to /etc/profile: CLASSPATH=$CLASSPATH:/usr/lib/pgsql/jdbc7.0-1.2.jar, and I have also added: /usr/lib/pgsql/jdbc7.0-1.2.jar to PATH in /etc/profile. In JBuilder 4 Foundation the /usr/lib/pgsql/jdbc7.0-1.2.jar have been added to the Class tab in the Configure JDKs dialog box. Some of my friends told me to unpack the jdbc7.0-1.2.jar file and place the org package inside tomcat/webapps/root/classes - but I have not tried that yet. But anyway - it would be nice to use the postgresql database server from both JBuilder 4 Foundation and JavaServer Pages (Tomcat). Thanks. Lars Nielsen Lind E-mail address: larslind@systemudvikling.dk