4 Replies Latest reply on Nov 2, 2012 6:49 PM by Jorge Solorzano

    Why is my JDBC4-compliant driver loaded as "non-JDBC-compliant"?

    Rich Raposa Novice

      I am slightly confused by something - possibly because I don't understand this correctly. If I deploy the PostgreSQL JDBC4 driver, which contains the META-INF/services/java.sql.Driver file containg the proper driver class name, then when I deploy the JAR I get the following output:


      Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 9.0)



      If I remove the java.sql.Driver file from the JAR and deploy it again, I do not get any warning and it appears to deploy fine:


      Starting deployment of "postgresql-9.0-801.jar"

      Deployed "postgresql-9.0-801.jar"


      Am I doing something wrong by using the java.sql.Driver file? According to the documentation, the file java.sql.Driver is requried to make the JAR JDBC4-compliant, so why does the output contradict this and tell me that I am deploying a non-JDBC-compliant driver?