OpenJPA
  1. OpenJPA
  2. OPENJPA-1258

make warning message more friendly when other persistence provider configured by application

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.1.1, 1.3.0, 2.0.0-beta
    • Component/s: logging
    • Labels:
      None
    • Environment:
      Windows XP
      java version "1.5.0_14"
    • Patch Info:
      Patch Available

      Description

      When application configures other persistence provider rather than openjpa, there will be a warning message printed out:
      WARNING: Found unrecognized persistence provider "org.eclipse.persistence.jpa.PersistenceProvider" in place of OpenJPA provider. This provider's properties will not be used.

      It is legal that other persistence provider be configured. The message doesn't look friendly and might be confusing.

      I change the message like:
      INFO: Found persistence provider "org.eclipse.persistence.jpa.PersistenceProvider". OpenJPA will not be used.

      1. OPENJPA1258.patch
        0.8 kB
        Amy Yang
      2. OPENJPA1258_trunk.patch
        0.8 kB
        Amy Yang

        Activity

        Amy Yang created issue -
        Amy Yang made changes -
        Field Original Value New Value
        Attachment OPENJPA1258.patch [ 12417212 ]
        Hide
        Amy Yang added a comment -

        patch for trunk

        Show
        Amy Yang added a comment - patch for trunk
        Amy Yang made changes -
        Attachment OPENJPA1258_trunk.patch [ 12426741 ]
        Hide
        David Ezzio added a comment -

        Applied Amy's patch to 1.1.x branch at 890415.

        Show
        David Ezzio added a comment - Applied Amy's patch to 1.1.x branch at 890415.
        David Ezzio made changes -
        Fix Version/s 1.1.1 [ 12313177 ]
        Hide
        David Ezzio added a comment -

        Applied Amy's patch to trunk at 891465.

        Show
        David Ezzio added a comment - Applied Amy's patch to trunk at 891465.
        David Ezzio made changes -
        Fix Version/s 2.0.0 [ 12314019 ]
        Donald Woods made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.3.0 [ 12313326 ]
        Fix Version/s 2.0.0-beta [ 12314149 ]
        Fix Version/s 2.0.0 [ 12314019 ]
        Resolution Fixed [ 1 ]
        Donald Woods made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hide
        Laird Nelson added a comment -

        Is there any way to disable this message? It does not appear to go through the usual OpenJPA logging channels, which makes a certain amount of sense, since after all OpenJPA is not going to be used. But what can I do to quiet this down?

        Show
        Laird Nelson added a comment - Is there any way to disable this message? It does not appear to go through the usual OpenJPA logging channels, which makes a certain amount of sense, since after all OpenJPA is not going to be used. But what can I do to quiet this down?
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        200d 11h 54m 1 Donald Woods 09/Mar/10 15:04
        Resolved Resolved Closed Closed
        3h 27m 1 Donald Woods 09/Mar/10 18:31

          People

          • Assignee:
            Unassigned
            Reporter:
            Amy Yang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development