postgresql – JBoss日志Postgres驱动程序是“非JDBC兼容的”
发布时间:2020-12-13 16:05:05 所属栏目:百科 来源:网络整理
导读:我将JBoss服务器连接到一个新的Postgres数据库. 在standalone.xml中: driver name="postgresql" module="com.postgresql.pgjdbc" driver-classorg.postgresql.Driver/driver-class/driver 在module.xml中: module xmlns="urn:jboss:module:1.1" name="com.
我将JBoss服务器连接到一个新的Postgres数据库.
在standalone.xml中: <driver name="postgresql" module="com.postgresql.pgjdbc"> <driver-class>org.postgresql.Driver</driver-class> </driver> 在module.xml中: <module xmlns="urn:jboss:module:1.1" name="com.postgresql.pgjdbc"> <resources> <resource-root path="postgresql-9.3-1102.jdbc41.jar"/> </resources> <dependencies> <module name="javax.api"/> <module name="javax.transaction.api"/> </dependencies> </module> 启动JBoss时,我得到以下日志条目: 10:49:57,206 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 25) JBAS010404: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 9.3) 驱动程序确实似乎连接和工作.这种违规行为会产生什么影响? 解决方法
根据这个JBoss论坛条目无:
Why is my JDBC4-compliant driver loaded as “non-JDBC-compliant”?
和源代码: /** * Report whether the driver is a genuine JDBC compliant driver. A * driver may only report "true" here if it passes the JDBC compliance * tests,otherwise it is required to return false. JDBC compliance * requires full support for the JDBC API and full support for SQL 92 * Entry Level. * * <p>For PostgreSQL,this is not yet possible,as we are not SQL92 * compliant (yet). */ public boolean jdbcCompliant() { return false; } https://github.com/pgjdbc/pgjdbc/blob/REL9_3_1102/org/postgresql/Driver.java.in 这是TODO清单http://jdbc.postgresql.org/development/todo.html#Compliance的一部分 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |