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

OpenJPA doesn't work as internal JPA inside web applicaion in JBoss AS

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-beta2
    • Fix Version/s: 2.0.0-beta3
    • Component/s: None
    • Labels:
      None
    • Environment:
      JBoss AS 5.1
    • Patch Info:
      Patch Available

      Description

      OpenJPA fails to complete the initialization phase if it is used as an internal library inside web application and this application is deployed to the JBoss AS. The problem is that PersistenceMetaDataFactory tries to parse the directory as an unparsed XML file. It takes the URL to this XML file from the list of the unparsed files. But the URL that points to a directory is added to this list. This URL is added to the unparsed files in the mapPersistentTypeNames method of the PersistenceMetaDataFactory class.
      I've attached the stack trace of the original error and the patch with possible fix.

        Attachments

        1. OPENJPA-1546.diff
          2 kB
          Donald Woods
        2. OPENJPA-1546-13x.diff
          2 kB
          Donald Woods
        3. openjpa-jboss.patch
          0.8 kB
          Dmitri Babaev
        4. stack-trace.txt
          15 kB
          Dmitri Babaev

          Activity

            People

            • Assignee:
              drwoods Donald Woods
              Reporter:
              ratatosk Dmitri Babaev
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: