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

Parsing exception while using an "exploded" archive

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.0.0
    • jpa
    • None
    • Sun JDK 5.0 / EasyBeans / OpenJPA snapshot 0.9.7

    Description

      This happens when using OpenJPA as persistence provider for the EasyBeans ObjectWeb container.
      The error is happening with "exploded" archive.
      Exploded means that there is a directory, named "entitybean.jar" with a folder META-INF which contains a file named persistence.xml, and other directories/files for the classes.

      It seems that when using this mode, OpenJPA is trying to parse the directory inputstream (which is failing).
      This exception is not occuring if a jar file is used instead of the "exploded" mode, but the exploded mode is the default mode for EasyBeans.
      Note also that this exception don't occur by using Hibernate Entity Manager or Oracle TopLink Essentials as persistence provider.

      I will attach to this issue a stack trace (with the exploded directory) which fails and at the end with a jar file (which work)
      And 4 steps used to reproduce this problem

      Attachments

        1. steps.txt
          14 kB
          Florent BENOIT
        2. stacktrace-error.txt
          14 kB
          Florent BENOIT
        3. OPENJPA-148-2.patch
          2 kB
          David Jencks
        4. OPENJPA-148.patch
          2 kB
          David Jencks
        5. debug_traces_filemode_working.txt
          4 kB
          Florent BENOIT
        6. debug_traces_directorymode.txt
          14 kB
          Florent BENOIT

        Activity

          People

            Unassigned Unassigned
            benoitf Florent BENOIT
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: