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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 2017.2.0
    • 2017.3.3
    • core
    • 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.

      Attachments

        Activity

          People

            bmcwhirt@redhat.com Bob McWhirter (Inactive)
            emag_jira Yoshimasa Tanabe (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: