From: | Nahum Castro <pedro1_72(at)yahoo(dot)com> |
---|---|
To: | tgutierrez(at)unipamplona(dot)edu(dot)co, pgsql-es-ayuda(at)postgresql(dot)org |
Subject: | Re: error coneccion java postgresql 7.4.2 suse 9.0 |
Date: | 2004-10-05 15:18:23 |
Message-ID: | 20041005151823.49594.qmail@web13927.mail.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
--- tgutierrez(at)unipamplona(dot)edu(dot)co escribió:
> hola amigos de PostgreSQL postgresql 7.4.2 suse 9.0
>
> configure el archivo postgresql.conf en
> /var/lib/pgsql/data. para que
> aceptara conexion tcp/ip, le asigne permisos en el
> archivo pg_hba.conf
>
> el archivo postgresql en /etc/init.d no lo modifique
>
>
> el aplicativo esta haciendo conexion con el driver:
> jdbc7.1-1.2.jar
>
> al ejecutar el aplicativo presenta el siguiente
> error:
>
> Err no se puedo cargar el driver en
> DefinitionConnectionPortal -->
> DefinitionConnectionPortal Cannot create
> PoolableConnectionFactory
> org.apache.commons.dbcp.SQLNestedException: Cannot
> create
> PoolableConnectionFactory, cause:
> Connection refused. Check that the hostname and port
> is correct, and that
> the postmaster is running with the -i flag, which
> enables TCP/IP
> networking.
> at
>
org.postgresql.Connection.openConnection(Connection.java:136)
> at
> org.postgresql.Driver.connect(Driver.java:122)
> at
>
org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:82)
> at
>
org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:300)
> at
>
org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:838)
> at
>
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:821)
> at
>
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:518)
>
>
> cual seria el driver que tendria que bajar?
>
> Gracias
http://jdbc.postgresql.org/download/pg74.215.jdbc3.jar
El driver lo pones en dir_tomcat/common/lib
modificas postgresql.conf
habilitas la conexión tcp/ip a true y le quitas el
gato.
Muy importante desinstala el driver viejo(ie eliminalo
de classpath)
Salu2.
=====
--
Nahum Castro
Leon, Guanajuato, Mexico
e-mail: pedro1_72 [en] yahoo [punto] com
_________________________________________________________
Do You Yahoo!?
La mejor conexión a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx
From | Date | Subject | |
---|---|---|---|
Next Message | Leonel Nunez | 2004-10-05 15:43:53 | Re: error en dropdb |
Previous Message | jonathan sepulveda | 2004-10-05 15:14:48 | error en dropdb |