Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-4072

Unable to Enable JTA for a Datasource

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Can't Do
    • Icon: Critical Critical
    • None
    • 8.1.0.Final
    • JCA

      Whenever trying to enable JTA, the following error is reported:

      Unknown error

      Unexpected HTTP response: 500

      Request
      {
      "name" => "test",
      "user-name" => "test",
      "password" => "test",
      "security-domain" => "",
      "jndi-name" => "java:/datasource/test",
      "transaction-isolation" => "TRANSACTION_READ_COMMITTED",
      "new-connection-sql" => "",
      "connection-url" => "jdbc:derby://localhost:1527/test",
      "driver-class" => "org.apache.derby.jdbc.ClientDriver",
      "jta" => true,
      "pool-name" => "",
      "use-ccm" => false,
      "datasource-class" => "",
      "valid-connection-checker-class-name" => "",
      "check-valid-connection-sql" => "",
      "background-validation" => false,
      "background-validation-millis" => -1L,
      "validate-on-match" => false,
      "stale-connection-checker-class-name" => "",
      "exception-sorter-class-name" => "",
      "prepared-statements-cache-size" => -1L,
      "share-prepared-statements" => false,
      "enabled" => false,
      "driver-name" => "Derby_org.apache.derby.jdbc.ClientDriver_10_10",
      "operation" => "enable",
      "address" => [
      ("subsystem" => "datasources"),
      ("data-source" => "test")
      ]
      }

      Response

      Internal Server Error
      {
      "outcome" => "failed",
      "failure-description" => "JBAS014750: Operation handler failed to complete",
      "rolled-back" => true
      }

      Due to this issue, EJB's transaction management does not work. I tested the same database on GlassFish and JTA works fine.

              smaestri@redhat.com Stefano Maestri
              shinzey shinzey shinzey (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: