Uploaded image for project: 'WildFly WIP'
  1. WildFly WIP
  2. WFWIP-75

it's not possible to enable Hibernate Bytecode Transformer using j-d-s.xml

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • JPA
    • None
    • Hide

      run test Hibernate51CompatibilityTransformerTest from https://github.com/simkam/wildfly/commit/950cb329063f91e000689882356baa77a6326a45

      Show
      run test Hibernate51CompatibilityTransformerTest from https://github.com/simkam/wildfly/commit/950cb329063f91e000689882356baa77a6326a45
    • Workaround Exists
    • Hide

      enable transformer globally with system property -DHibernate51CompatibilityTransformer=true

      Show
      enable transformer globally with system property -DHibernate51CompatibilityTransformer=true

    Description

      based on testing with https://github.com/scottmarlow/wildfly/tree/WFLY-10520_pr_hack

      it's not possible to enable transformer for application in jboss-deployment-structure.xml.

      there are probably more issues

      1. application has to have dependency on module org.hibernate.bytecodetransfomer (which is ok, users must edit j-d-s.xml anyway) / or org.hibernate.bytecodetransfomer must be global module
      2. transformer has private constructor so ClassFileTransformerProcessor cannot instantiate it

      Attachments

        Issue Links

          Activity

            People

              smarlow1@redhat.com Scott Marlow
              msimka@redhat.com Martin Simka
              Martin Simka Martin Simka
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: