不影响任何内容的错误 "org.postgresql.Driver is not a valid javax.sql.DataSource implementation"。如何删除它?

Error "org.postgresql.Driver is not a valid javax.sql.DataSource implementation" that doesn`t affect anything. How to remove it?

我想从 TomeEE 服务器转到 WildFly。我有一个使用 postgresql 数据库的应用程序。

我根据不同的教程 1)部署驱动到服务器 2) 在数据源中注册它。

连接测试成功。

当我尝试启动项目时出现以下错误:

09:18:45,442 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
    ("subsystem" => "datasources"),
    ("data-source" => "PostgresDS")
]) - failure description: {"WFLYCTL0080: Failed services" => {"org.wildfly.data-source.PostgresDS" => "WFLYJCA0033: Error during the deployment of PostgresDS
    Caused by: org.jboss.jca.deployers.common.DeployException: WFLYJCA0030: unable to deploy
    Caused by: org.jboss.as.controller.OperationFailedException: WFLYJCA0117: org.postgresql.Driver is not a valid javax.sql.DataSource implementation [ \"WFLYJCA0117: org.postgresql.Driver is not a valid javax.sql.DataSource implementation\" ]"}}
09:18:45,443 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
    ("subsystem" => "datasources"),
    ("data-source" => "PostgresDS")

但一切正常!是什么原因导致此错误,我可以将其删除吗?

P.S。我有一个依赖 im pom.xml:

        <dependency>
            <groupId>org.postgresql</groupId>
            <artifactId>postgresql</artifactId>
            <version>42.2.5</version>
        </dependency>

我的persistence.xml:

<persistence-unit name="PersistenceUnitJTA" transaction-type="JTA">
        <jta-data-source>java:jboss/PostgresDS</jta-data-source>
        <properties>
            ...
        </properties>
</persistence-unit>

As documented in the manual Postgres JDBC 驱动程序提供的 DataSource 实现的 class 是:org.postgresql.ds.PGConnectionPoolDataSource

您需要为 "Datasource Class" 属性.

配置 classname