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

driver-datasource-class-name and driver-xa-datasource-class-name need to be validated when updating

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 14.0.0.Final
    • Component/s: JCA
    • Labels:
      None

      Description

      Download oracle jdbc driver at http://www.oracle.com/technetwork/database/features/jdbc/jdbc-ucp-122-3110062.html

      Install the driver as a module and add the JDBC driver:

      module add --name=com.oracle.jdbc --resources=/opt/Downloads/ojdbc8.jar --dependencies=[javax.api, javax.transaction.api]
      
      /subsystem=datasources/jdbc-driver=oracle:add(driver-name=oracle, driver-module-name=com.oracle.jdbc, driver-datasource-class-name=oracle.jdbc.datasource.OracleDataSource, driver-xa-datasource-class-name=oracle.jdbc.xa.client.OracleXADataSource, driver-class-name=oracle.jdbc.OracleDriver)
      

      It should fail because the configuraiton:

      driver-datasource-class-name=oracle.jdbc.datasource.OracleDataSource
      

      is wrong, oracle.jdbc.datasource.OracleDataSource is an interface, not a concrete class.

      It should be the same for the data-source creation when specifying the datasource-class.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  gaol Lin Gao
                  Reporter:
                  gaol Lin Gao
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: