Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-jdbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group