JBoss日志Postgres驱动程序是“非JDBC兼容的".

编程入门 行业动态 更新时间:2024-10-27 13:27:39
本文介绍了JBoss日志Postgres驱动程序是“非JDBC兼容的".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我将JBoss服务器连接到新的Postgres数据库中.

I wired my JBoss server into a new Postgres database.

在standalone.xml中:

In standalone.xml:

<driver name="postgresql" module="com.postgresql.pgjdbc"> <driver-class>org.postgresql.Driver</driver-class> </driver>

在module.xml中:

In 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时,我得到以下日志条目:

When starting JBoss, I get the following log entry:

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)

驱动程序确实可以连接并正常工作.这种不合规的后果是什么?

The driver does seem to connect and work. What are the effects of this non-compliance?

推荐答案

根据此JBoss论坛条目,无:为什么我的兼容JDBC4的驱动程序被加载为不兼容JDBC"吗?

According this JBoss forum entry none: Why is my JDBC4-compliant driver loaded as "non-JDBC-compliant"?

因为org.postgresql.Driver#jdbcCompliant()返回false.那么你 现在可以忽略它,我敢肯定PostgreSQL JDBC的人 想要代码贡献

Because org.postgresql.Driver#jdbcCompliant() returns false. So you can ignore that for now, and I'm sure that the PostgreSQL JDBC people would like code contributions

和源代码:

/** * 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; }

github/pgjdbc/pgjdbc/blob/REL9_3_1102/org/postgresql/Driver.java.in

这是TODO列表的一部分 jdbc.postgresql/development /todo.html#Compliance

This is part of the TODO List jdbc.postgresql/development/todo.html#Compliance

更多推荐

JBoss日志Postgres驱动程序是“非JDBC兼容的".

本文发布于:2023-10-28 23:52:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1538129.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:驱动程序   日志   JBoss   Postgres   quot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!