Datasource test-connection operation getting failed in EAP 6

Solution Verified - Updated -

Issue

  • Trying to create datasource and JNDI to connect mysql DB with admin console in domain controller environment, but it throws error as below. We are sure all the DB configuration is correct:
Unexpected HTTP response: 500

Request
{
    "password" => "test",
    "enabled" => false,
    "driver-name" => "mysql-connector-java-5.1.31-bin.jarcom.mysql.jdbc.Driver_5_1",
    "user-name" => "test",
    "jta" => false,
    "use-ccm" => false,
    "pool-name" => "test_Pool",
    "set-tx-query-timeout" => false,
    "query-timeout" => 0L,
    "allocation-retry" => 0,
    "allocation-retry-wait-millis" => 0L,
    "connection-url" => "jdbc:mysql://localhost:3307/testdb",
    "driver-class" => "com.mysql.jdbc.Driver",
    "share-prepared-statements" => false,
    "use-try-lock" => 0L,
    "blocking-timeout-wait-millis" => 0L,
    "idle-timeout-minutes" => 0L,
    "background-validation" => false,
    "validate-on-match" => false,
    "jndi-name" => "java:/test",
    "name" => "test",
    "operation" => "add",
    "address" => [
        ("profile" => "full"),
        ("subsystem" => "datasources"),
        ("data-source" => "leadsDS")
    ]
}

Response

Internal Server Error
{
    "outcome" => "failed",
    "result" => undefined,
    "failure-description" => "JBAS010839: Operation failed or was rolled back on all servers.",
    "rolled-back" => true,
    "server-groups" => {
        "One-Group" => {"host" => {"One-host" => {"One-Server" => {"response" => {
            "outcome" => "failed",
            "result" => undefined,
            "rolled-back" => true
        }}}}},
        "Two-GROUP" => {"host" => {"Two-host" => {"Two-Server" => {"response" => {
            "outcome" => "failed",
            "result" => undefined,
            "rolled-back" => true
        }}}}},
        "Third-GROUP" => {"host" => {"third-host" => {"Third-Server" => {"response" => {
            "outcome" => "failed",
            "result" => undefined,
            "failure-description" => {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.driver-demander.java:/test is missing [jboss.jdbc-driver.mysql-connector-java-5_1_31-bin_jarcom_mysql_jdbc_Driver_5_1]"]},
            "response-headers" => {"process-state" => "restart-required"},
            "rolled-back" => true
        }}}}}
    }
}

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.