Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1369

persistence.xml in EAR/META-INF folder with <jar-file>

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Out of Date
    • Affects Version/s: 7.1.1.Final
    • Fix Version/s: None
    • Component/s: JPA / Hibernate
    • Labels:
      None

      Description

      adding persistence.xml in META-INF dir of an ear like this
      ?xml version="1.0" encoding="UTF-8"?>
      <persistence xmlns="http://java.sun.com/xml/ns/persistence"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
      version="2.0">
      <persistence-unit name="mypersistencunit">
      ...
      <jar-file>lib/myjpa.jar</jar-file>

      result in exception:
      Caused by: java.lang.RuntimeException: error trying to scan <jar-file>: vfs:/c:/JBoss/jboss-as-7.0.0.Final/bin/content/lib/myjpa.jar

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                baranowb Bartosz Baranowski
                Reporter:
                maximilien wiktorowski maximilien
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: