Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-1173

'No persistence descriptors' message confuses more people than it helps

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.4
    • jpa-2.0.0
    • JPA
    • None

    Description

      org.apache.aries.jpa.container.impl.PersistenceBundleHelper.findPersistenceXmlFiles() scans bundles for persistence.xml files. Unlike most bundles, it scans WABs even if they contain no Meta-Persistence: header in their bundle manifest. If no persistence.xml is found, it issues the no.persistence.descriptor warning, "No persistence descriptors could be located in the bundle ...".

      In practice this message is confusing a lot of people whose WABs don't contain persistence.xml files, and are not intended to. I propose to delete the warning altogether.

      Attachments

        Activity

          People

            cschneider Christian Schneider
            mnuttall Mark Nuttall
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: