JBAS010442: failed to match pool. Check JndiName: java:jboss/datasources/MyExampleDS" in JBoss EAP 6 when calling test-connection-in-pool
Issue
- We create a datasource using the JBoss CLI, but when we try to call test-connection-in-pool it fails with
JBAS010442: failed to match pool. Check JndiName: java:jboss/datasources/MyExampleDS"as shown below:
[standalone@localhost:9999 /] /subsystem=datasources/data-source=MyExampleDS:add(jndi-name=java:jboss/datasources/MyExampleDS, connection-url=\"jdbc:h2:mem:test2;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE\", driver-name=h2, user-name=sa, password=sa, max-pool-size=10)
{"outcome" => "success"}
[standalone@localhost:9999 /] /subsystem=datasources/data-source=MyExampleDS:test-connection-in-pool()
{
"outcome" => "failed",
"failure-description" => "JBAS010440: failed to invoke operation: JBAS010442: failed to match pool. Check JndiName: java:jboss/datasources/MyExampleDS",
"rolled-back" => true
}
Environment
Red Hat JBoss Enterprise Application Platform (EAP) 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
