0
Good night to you all.
I have a problem I believe is simple to solve.
in IDE(netbeans) the project runs smoothly, but when I publish in jbossit is the following error:
18:54:40,111 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1) JBAS010404: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 9.3) 18:54:40,154 INFO [org.jboss.web] (MSC service thread 1-2) JBAS018210: Registering web context: /Prjx 18:54:40,173 INFO [org.jboss.as.server] (Deploymentscanner-threads - 2) JBAS018559: Deployed "Prjx_v2.War"
CONNECTION CODE TO THE BANK:
public Connection conexaoPostgres(){
Connection con = null;
try {
Class.forName("org.postgresql.Driver");
con = DriverManager.getConnection("jdbc:postgresql://[IP]:[PORTA]/[BASE_DE_DADOS]","[LOG]","[PASS]");
}
catch (ClassNotFoundException | SQLException e) {
System.out.println("Projeto PrjX, classe Dao, método conexaoPostgres, erro: "+e.getMessage());
}
return con;
}
I have never used postgree with java, I have no idea what it might be, I find it very strange to work in netbeans for glassfish and jboss no.
postgree driver version: postgresql-9.3-1100.jdbc41.jar
someone’s been through it????