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

No Hibernate runtime bytecode enhancement in JAR module in EAR deployment

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 38.0.1.Final
    • JPA / Hibernate
    • None
    • Hide

      Create a data source with the name "testDS" in your WildFly 38.0.1.Final instance. Deploy the attached test.ear.

      You will see output like the following:

      15:45:36,437 INFO  [stdout] (ServerService Thread Pool -- 56) ##!## Entity bytecode enhanced: false 

      If you deploy the same EAR in a WildFly 35.0.1.Final instance, the output will contain "true" instead.

      Show
      Create a data source with the name "testDS" in your WildFly 38.0.1.Final instance. Deploy the attached test.ear . You will see output like the following: 15:45:36,437 INFO  [stdout] (ServerService Thread Pool -- 56) ##!## Entity bytecode enhanced: false If you deploy the same EAR in a WildFly 35.0.1.Final instance, the output will contain "true" instead.
    • ---
    • ---

      After upgrading from WildFly 35.0.1.Final to WildFly 38.0.1.Final, Hibernate runtime bytecode enhancement is no longer performed for our entities. Originally we had the following in our persistence.xml:

                  <!--
                      Runtime Bytecode Enhancement
                  -->
                  <property name="hibernate.enhancer.enableDirtyTracking" value="true"/>
                  <property name="hibernate.enhancer.enableLazyInitialization" value="true"/> 

      I then added the following property, but it did not change anything:

                  <property name="jboss.as.jpa.classtransformer" value="true"/> 

      Our application is an EAR deployment with an EJB jar and a WEB war inside, and the EJB jar contains the persistence unit and the entities.

      It would be very much appreciated if, additionally to a fix, a workaround could be provided, so our application can run on WildFly 38.0.1.Final.

      Thank you very much in advance!

              smarlow1@redhat.com Scott Marlow
              mkomkomko Manuel K
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: