Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement