X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 00E9F9DC984 for ; Wed, 18 Jan 2006 12:56:30 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 82421-02 for ; Wed, 18 Jan 2006 12:56:29 -0400 (AST) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 8420A9DC9E1 for ; Wed, 18 Jan 2006 12:56:28 -0400 (AST) Received: from fmmailgate05.web.de (fmmailgate05.web.de [217.72.192.243]) by svr4.postgresql.org (Postfix) with ESMTP id 410CA5AF18D for ; Wed, 18 Jan 2006 16:56:28 +0000 (GMT) Received: by fmmailgate05.web.de (8.12.10/8.12.10/webde Linux 0.7) with SMTP id k0IGu31K030035 for ; Wed, 18 Jan 2006 17:56:24 +0100 Received: from [213.223.114.15] by freemailng1503.web.de with HTTP; Wed, 18 Jan 2006 17:56:23 +0100 Date: Wed, 18 Jan 2006 17:56:23 +0100 Message-Id: <768569414@web.de> MIME-Version: 1.0 From: Marc SCHNEIDER To: pgsql-jdbc@postgresql.org Subject: PGConnection (LargeObject) / JNDI Tomcat Issue Precedence: fm-user Organization: http://freemail.web.de/ Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200601/89 X-Sequence-Number: 14540 Hello, I have trouble to get Tomcat and JDBC work with LargeObject. I am using JNDI for database access factory org.apache.commons.dbcp.BasicDataSourceFactory driverClassName org.postgresql.Driver url jdbc:postgresql://localhost:5432/intradev username myuser password mypass Here is my code : LargeObjectManager lom =3D ((org.postgresql.PGConnection)this.connecti= on).getLargeObjectAPI(); I get the following error : java.lang.ClassCastException This is because the connection is an instance of org.apache.commons.dbcp.P= oolingDataSource$PoolGuardConnectionWrapper and I'm trying to get a org.postgresql.PGConnection connection. I saw on the web that people used org.postgresql.jdbc3.Jdbc3ObjectFactory = but this class is available with jdbc 7.x drivers only. I tried to use the org.postgresql.ds.common.PGObjectFactory class but when= I connect to the database I get the following error : "no PostgreSQL user name specified in startup packet" Here is my config : DB : PostgreSQL 8.0 Driver jdbc : postgresql-8.0-312.jdbc3.jar Java Server : Tomcat 5.0.28 Os : Win XP Any idea =3F=3F=3F Regards, Marc SCHNEIDER. =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= Erweitern Sie FreeMail zu einem noch leistungsst=E4rkeren E-Mail-Postfach! =09 Mehr Infos unter http://freemail.web.de/home/landingpad/=3Fmc=3D021131