Il tuo IP:

38.107.191.112
Driver jdbc per postgres
Valutazione attuale: / 0
ScarsoOttimo 
Scritto da Federica   
Giovedì 14 Giugno 2007 17:44
Se, installando un'applicazione di tomcat, ricevete il seguente errore
Error in setConnection :tuo_database :org.postgresql.Driver
dove tuo_database è il nome del database al quale ci si deve connettere
può significare che non avete instalato il driver jdbc per la connessione.

Scaricare dal sito di postgres la versione del driver jdbc in linea con jre (es: pg74.216.jdbc3.jar) e postgres
esempio: versione di postgres: postgresql-7.4  7.4.12-3
versione di jre: java-1.5.0-sun-1.5.0.06
da http://jdbc.postgresql.org/download.html scaricare pg74.216.jdbc3.jar

copiare pg74.216.jdbc3.jar in questi percorsi:
# cp /tmp/pg74.216.jdbc3.jar /usr/lib/jvm/java-1.5.0-sun-1.5.0.06/jre/lib/ext/
# cp /tmp/pg74.216.jdbc3.jar /var/lib/tomcat5/shared/lib/


riavviare tomcat.......... e anche postgres che non fa mai male :-)
Argomenti correlati: Linux postgres database

+/-
Commenta
Nome:
Email:
 
Titolo:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
 
Please input the anti-spam code that you can read in the image.
+/- Commenti
Nuovo

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

 
Dario&Federica
Hosting neomediatech