Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2052

New audit log functionality does not work in OSGi

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • osgi
    • None

    Description

      The new audit functionality is not yet part of a released version of OpenJPA. I've been testing 2.2.0-SNAPSHOT.

      I've tested the Auditor functionality using normal (non-OSGi) unit tests and so far it seems to work. However, when trying the same functionality in OSGi (Karaf/Felix and also Felix using Pax-Exam), OpenJPA fails to find my Auditor class. Timothy Ward (on the Aries mailing list) suggested that it seems like OpenJPA is using its own class loader to load my Auditor class (which of course will not work). OpenJPA needs to use the class loader of the bundle containing the persistence.xml to load my Auditor class. I also believe this is the problem.

      This has been discussed on both Aries and OpenJPA's mailing list:

      http://openjpa.208410.n2.nabble.com/Auditor-and-OSGi-td6759170.html#a6769605

      http://www.mail-archive.com/user@aries.apache.org/msg00320.html

      Attachments

        Activity

          People

            Unassigned Unassigned
            rodehav Bengt Rodehav
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: