Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 466A76360C8 for ; Wed, 10 Mar 2010 11:27:24 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 46772-04-5 for ; Wed, 10 Mar 2010 15:27:13 +0000 (UTC) X-Greylist: delayed 00:31:29.331334 by SQLgrey-1.7.6 Received: from mail.mnc.ch (62-2-77-205.static.cablecom.ch [62.2.77.205]) by mail.postgresql.org (Postfix) with ESMTP id 7225E636046 for ; Wed, 10 Mar 2010 11:26:43 -0400 (AST) Received: from localhost (mail2.mnc.ch [127.0.0.1]) by mail.mnc.ch (Postfix) with ESMTP id B379E23081; Wed, 10 Mar 2010 14:55:10 +0000 (GMT) X-Virus-Scanned: amavisd-new at mnc.ch Received: from mail.mnc.ch ([127.0.0.1]) by localhost (mail2.mnc.ch [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 44ecSkYjk8X3; Wed, 10 Mar 2010 14:54:59 +0000 (GMT) Received: from meuh.localdomain (62-2-77-204.static.cablecom.ch [62.2.77.204]) by mail.mnc.ch (Postfix) with ESMTP id F022423079; Wed, 10 Mar 2010 14:54:58 +0000 (GMT) Received: by meuh.localdomain (Postfix, from userid 1000) id 848B8110246; Wed, 10 Mar 2010 15:54:58 +0100 (CET) To: Major Services Cc: pgsql-jdbc@postgresql.org Subject: Re: org.postgresql.util.PSQLException: Protocol error. Session setup failed References: <375c2da1003090851h36daef83v2ced94b02051b08b@mail.gmail.com> <4B96CC72.2070306@catalyst.net.nz> <375c2da1003100631n22609890x36e522cf509eaaa6@mail.gmail.com> From: Guillaume Cottenceau X-Hashcash: 1:20:100310:services.major@gmail.com::xxMwebf9EB380lyn:00000000000000000000000000000000000000+j9 X-Hashcash: 1:20:100310:pgsql-jdbc@postgresql.org::95lRf41oHTJmHm/3:0000000000000000000000000000000000000DG3 Date: Wed, 10 Mar 2010 15:54:58 +0100 In-Reply-To: <375c2da1003100631n22609890x36e522cf509eaaa6@mail.gmail.com> (Major Services's message of "Wed\, 10 Mar 2010 20\:01\:11 +0530") Message-ID: <87fx48rzul.fsf@meuh.mnc.lan> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.11 tagged_above=-10 required=5 tests=BAYES_05=-1.11 X-Spam-Level: X-Archive-Number: 201003/32 X-Sequence-Number: 20372 Major Services writes: > Hi, > Following is the error report: lol! (sorry, couldn't resist) > org.apache.jasper.JasperException: Unable to compile class for JSP: > > An error occurred at line: 13 in the jsp file: /jsp/pgtest.jsp > Properties cannot be resolved to a type > > 10: { > 11: Class.forName("org.postgresql.Driver"); > 12: String url = "jdbc:postgresql://localhost:5432/postgres?user=postgres&password=major"; > 13: Properties props = new Properties(); > 14: props.setProperty("loglevel","2"); > > 15: Connection conn = DriverManager.getConnection(url, props); > 16: } > -- Guillaume Cottenceau