Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-1115

persistence.xml should be located on proper path with @DefaultDeployment

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2017.2.0
    • Fix Version/s: 2017.3.3
    • Component/s: core
    • Labels:
      None

      Description

      persistence.xml should be located a particular classpath(e.g. src/main/resources/META-INF/persistence.xml) and if an app packaging is war, it'll be located /WEB-INF/classes/META-INF/persistence.xml in the war.

      But with @ DefaultDeployment it'll be located /META-INF/persistence.xml.

      https://gist.github.com/emag/9961f336ba326dc3e97303b76c43c138

      And then an error will occur from missing persistence.xml. I attached the error.log.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bob.mcwhirter Bob McWhirter
                Reporter:
                emag Yoshimasa Tanabe
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: