OpenJPA
  1. OpenJPA
  2. OPENJPA-2332

Update message when unable to resolve datasource configuration

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.2, 2.2.1.1, 2.3.0
    • Fix Version/s: 2.2.2, 2.3.0
    • Component/s: diagnostics, jdbc
    • Labels:
      None

      Description

      This error message does not give sufficient information to debug the situation. Users don't know how or why they got to this point in the processing:

      no-driver: A JDBC Driver or DataSource class name must be specified in the \
      ConnectionDriverName property. Available properties in configuration \
      are "

      {0}".

      Without getting too wordy for a single message, I'm planning to update this message as follows. I also plan to add some additional Trace points to help with debugging the issue.

      no-driver: Attempting to use persistence.xml properties to resolve the datasource. \
      A JDBC Driver or DataSource class name must be specified in the \
      openjpa.ConnectionDriverName or javax.persistence.jdbc.driver property. \
      Available properties in the configuration are "{0}

      ".

        Activity

        Hide
        ASF subversion and git services added a comment -

        Commit 1446687 from allee8285
        [ https://svn.apache.org/r1446687 ]

        OPENJPA-2332 - Update "no-driver" message content for clarity.

        Show
        ASF subversion and git services added a comment - Commit 1446687 from allee8285 [ https://svn.apache.org/r1446687 ] OPENJPA-2332 - Update "no-driver" message content for clarity.
        Hide
        ASF subversion and git services added a comment -

        Commit 1445249 from kwsutter
        [ https://svn.apache.org/r1445249 ]

        OPENJPA-2332. Updated the "no-driver" message and added a couple of additional Trace statements to help with debugging Datasource configuration issues.

        Show
        ASF subversion and git services added a comment - Commit 1445249 from kwsutter [ https://svn.apache.org/r1445249 ] OPENJPA-2332 . Updated the "no-driver" message and added a couple of additional Trace statements to help with debugging Datasource configuration issues.
        Hide
        ASF subversion and git services added a comment -

        Commit 1445220 from kwsutter
        [ https://svn.apache.org/r1445220 ]

        OPENJPA-2332. Updated the "no-driver" message and added a couple of additional Trace statements to help with debugging Datasource configuration issues.

        Show
        ASF subversion and git services added a comment - Commit 1445220 from kwsutter [ https://svn.apache.org/r1445220 ] OPENJPA-2332 . Updated the "no-driver" message and added a couple of additional Trace statements to help with debugging Datasource configuration issues.

          People

          • Assignee:
            Kevin Sutter
            Reporter:
            Kevin Sutter
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development