Good night everyone.
I have a problem, which I believe is simple to solve.
In the IDE (netbeans) the project runs smoothly, but when I publish in jbossacontece 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"
CODE OF CONNECTION 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've never used postgree with java, I have no idea what it might be, I find it very strange to run on netbeans through glassfish and not jboss.
postgree driver version: postgresql-9.3-1100.jdbc41.jar
Someone has already gone through this ????