Deploying non-JDBC-compliant driver class org.postgresql.Driver

Asked

Viewed 95 times

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????

1 answer

0

Maybe the driver configured in jboss is not compatible. Check that the driver that is configured in the container(jboss) is the same as the one being used in netbeans.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.