Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-6151

Schema not generated if Entities and Persistence.xml in another jar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 9.0.2.Final
    • EE, EJB, JPA / Hibernate
    • None

      I ported Dukes-Store to Wildfly. See https://github.com/karlnicholas/dukes-forest. All the entities, the persistence.xml, and the sql create.sql scripts are in a jar called entities.jar. Persistence.xml has javax.persistence.schema-generation properties to create the schema. If I do 'Run on Server' from eclipse, the schema generation scripts are executed. If I copy the .war file, or to mvn wildfly:deploy, the scripts are not executed and the deployment fails.

            smarlow1@redhat.com Scott Marlow
            karlnicholas Karl Nicholas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: