[jboss-jira] [JBoss JIRA] (WFLY-6151) Schema not generated if Entities and Persistence.xml in another jar

Scott Marlow (JIRA) issues at jboss.org
Tue Feb 9 09:42:00 EST 2016


    [ https://issues.jboss.org/browse/WFLY-6151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13160326#comment-13160326 ] 

Scott Marlow commented on WFLY-6151:
------------------------------------

Thank for reporting this issue Karl!  Could you please enable TRACE output for org.jboss.as.jpa + org.hibernate and recreate both the working + not-working deployments.  Please attach the server.log from each.  I think you already know but instructions [for enabling trace logging are here|https://docs.jboss.org/author/display/WFLY10/JPA+Reference+Guide#JPAReferenceGuide-Troubleshooting].

> Schema not generated if Entities and Persistence.xml in another jar
> -------------------------------------------------------------------
>
>                 Key: WFLY-6151
>                 URL: https://issues.jboss.org/browse/WFLY-6151
>             Project: WildFly
>          Issue Type: Bug
>          Components: EE, EJB, JPA / Hibernate
>    Affects Versions: 9.0.2.Final
>         Environment: Wildfly 9.0.2.Final, Windows 10, MySQL 5.6.
>            Reporter: Karl Nicholas
>            Assignee: Scott Marlow
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list