Error in setting up postgres with wildfly

0

I've done the postgresql configuration:

C: \ wildfly-10.1.0.Final \ modules \ system \ layers \ base \ com \ postgresql \ main

I added the files: module.xml postgresql-9.4.1208.jre7.jar

The bank has version 9.6 and drive 9.4, can the problem be this?

Error:

Unexpected HTTP response: 500

Request
{
    "address" => [
        ("subsystem" => "datasources"),
        ("data-source" => "Multlevel")
    ],
    "operation" => "test-connection-in-pool"
}

Response

Internal Server Error
{
    "outcome" => "failed",
    "failure-description" => "WFLYJCA0040: failed to invoke operation: WFLYJCA0042: failed to match pool. Check JndiName: java:jboss/datasources/multlevel",
    "rolled-back" => true
}
Arquivo module

<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.3" name="org.postgresql">
    <resources>
        <resource-root path="postgresql-9.4.1208.jre7.jar"/>
        <!-- Make sure this matches the name of the JAR you are installing -->
    </resources>
    <dependencies>
        <module name="javax.api"/>
        <module name="javax.transaction.api"/>
        <module name="javax.servlet.api" optional="true"/>
    </dependencies>
</module>
Arquivo Standalone:

<datasource jndi-name="java:jboss/datasources/multlevel" pool-name="Multlevel" enabled="true" use-java-context="true">
                    <connection-url>jdbc:postgresql://localhost:5432/estoquecd</connection-url>
                    <driver>postgresql</driver>
                    <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
                    <pool>
                         <min-pool-size>10</min-pool-size>
                         <max-pool-size>10</max-pool-size>
                         <prefill>true</prefill>
                    </pool>
                    <security>
                        <user-name>postgres</user-name>
                        <password>root</password>
                    </security>
                </datasource>

                <drivers>

        <driver name="postgresql" module="org.postgresql">
                        <xa-datasource-class>org.postgresql.xa.PGXADataSource</xa-datasource-class>
                    </driver>

                </drivers>

    
asked by anonymous 09.09.2017 / 05:54

1 answer

0

The problem was in the location of the drive folder name="org.postgresql"

According to the configuration the correct path would be: C: \ wildfly-10.1.0.Final \ modules \ system \ layers \ base \ org \ postgres \ main

    
11.09.2017 / 21:03