Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
“错误”;org.postgresql.Driver不是有效的javax.sql.DataSource实现";那不影响任何事情。如何删除它?_Java_Postgresql_Jakarta Ee_Wildfly - Fatal编程技术网

“错误”;org.postgresql.Driver不是有效的javax.sql.DataSource实现";那不影响任何事情。如何删除它?

“错误”;org.postgresql.Driver不是有效的javax.sql.DataSource实现";那不影响任何事情。如何删除它?,java,postgresql,jakarta-ee,wildfly,Java,Postgresql,Jakarta Ee,Wildfly,我想从TomeEE服务器转到WildFly。我有一个使用postgresql数据库的应用程序 根据不同的教程,我 1) 已将驱动程序部署到服务器 2) 在数据源中注册它 连接测试成功 当我尝试启动一个项目时,会出现以下错误: 09:18:45,442 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - addre

我想从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")
但一切正常!导致此错误的原因是什么?我可以删除它吗

另外,我有一个依赖项im pom.xml:

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

org.postgresql
postgresql
42.2.5
My persistence.xml:

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

java:jboss/postgresd
...
Postgres JDBC驱动程序提供的数据源实现类是:
org.postgresql.ds.PGConnectionPoolDataSource

您需要在“Datasource Class”属性中为配置该类名。

Postgres JDBC驱动程序提供的数据源实现类是:
org.postgresql.ds.PGConnectionPoolDataSource

您需要在“数据源类”属性中为配置该类名。

数据源驱动程序
请参阅
数据源驱动程序
请参阅