From: | "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at> |
---|---|
To: | "Gorka Mauleon *EXTERN*" <gorka(dot)mauleon(at)openbravo(dot)com>, <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: JNDI Datasource in tomcat |
Date: | 2008-11-04 16:01:56 |
Message-ID: | D960CB61B694CF459DCFB4B0128514C202ACF619@exadv11.host.magwien.gv.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Gorka Mauleon wrote:
>
> Im trying to get a connection through a JNDI service in tomcat.
[...]
> using thi driver. pg74.216.jdbc3.jar
> I get this error
> - org.postgresql.util.PSQLException: A result was returned when none was
> expected.
[...]
> PreparedStatement pstmt = con.prepareStatement(dbSessionConfig);
> pstmt.executeUpdate(); <--- Here a got the error
>
> when i used the driver manager with this driver jdbc3-postgresql.jar i
> think that i got another kind of connection and i havent got no error.
> seems that now i have a config error but i dont really know whats the
> correct way to fix it
What is in "dbSessionConfig"?
That might help answer the question.
BTW, why don't you use a more recent driver?
Yours,
Laurenz Albe
From | Date | Subject | |
---|---|---|---|
Next Message | Alexander Panzhin | 2008-11-04 16:38:21 | Re: Passing Array from Java to Postgres |
Previous Message | Sangeeta | 2008-11-04 15:46:05 | Retrieve auto-generated key. |