我试图在Wildfly中添加Postgres作为数据源,但继续获取JDBC连接错误如下:
无法创建JDBC连接。
发生内部错误。详细信息意外的HTTP响应:500
请求{ “name”=> “PostgresDS” “enabled”=>真正, “jndi-name”=>的 “java:/ PostgresDS” “user-name”=> “管理员”, “password”=> “123”, “pool-name”=> “PostgresDS_Pool” “use-ccm”=>假, “jta”=>假, “connection-url”=> “JDBC:在PostgreSQL://本地主机:5432 / postgresdb” “司机级”=> “org.postgresql.Driver” “driver-name”=> “PostgreSQL相关9.4.1208.jar” “valid-connection-checker-class-name”=> “org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLValidConnectionChecker” “background-validation”=>真正, “exception-sorter-class-name”=> “org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLExceptionSorter” “operation”=> “加”, “地址”=> [ (“subsystem”=>“datasources”), (“data-source”=>“PostgresDS”) ]}
响应
内部服务器错误{ “结果”=> “失败”, “failure-description”=> “WFLYCTL0212:重复资源[ (\“subsystem \”=> \“datasources \”), (\“data-source \”=> \“PostgresDS \”)]“, “roll-back”=>是的}