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_trunk.patch
        0.8 kB
        Amy Yang
      2. OPENJPA1258.patch
        0.8 kB
        Amy Yang

        Activity

        Hide
        Amy Yang added a comment -

        patch for trunk

        Show
        Amy Yang added a comment - patch for trunk
        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.
        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.
        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?

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development