Re: jdbc:postgresql:database not bound error

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: "William I(dot) Zumwalt" <wizumwalt(at)yahoo(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: jdbc:postgresql:database not bound error
Date: 2004-09-29 22:28:59
Message-ID: 415B372B.5010102@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

William I. Zumwalt wrote:

> 09:32:37,214 INFO [PostgresDS] Bound connection
> factory for resource adapter for ConnectionManager
> 'jboss.jca:service=LocalTxCM,name=PostgresDS to JNDI
> name 'java:/PostgresDS'

> 10:36:26,231 INFO [STDOUT] Exception:
> jdbc:postgresql:megs not bound

> public static final String DBURL =
> "jdbc:postgresql:megs";

> Context context = new
> InitialContext();
> dataSource = (DataSource)
> context.lookup(DBURL);

Shouldn't you be doing a lookup of "java:/PostgresDS", not DBURL?

Either way, it sounds like a jboss/application config error, not a JDBC
driver error. You might want to try a jboss list if changing the lookup
doesn't help.

-O

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Jaroslaw J. Pyszny 2004-09-30 05:05:54 Re: Auto-increment serial (Postgresql JDBC driver w/
Previous Message William I. Zumwalt 2004-09-29 16:17:15 jdbc:postgresql:database not bound error