[jboss-jira] [JBoss JIRA] (WFWIP-75) it's not possible to enable Hibernate Bytecode Transformer using j-d-s.xml
Scott Marlow (JIRA)
issues at jboss.org
Tue Jul 31 07:29:00 EDT 2018
[ https://issues.jboss.org/browse/WFWIP-75?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13612600#comment-13612600 ]
Scott Marlow commented on WFWIP-75:
-----------------------------------
Applications shouldn't need to add a dependency on org.hibernate.bytecodetransfomer, as we will remove that module in the future.
With my other local changes, the following j-d-s.xml (moved to a separate file) seems to work:
{code}
<jboss-deployment-structure>
<deployment>
<transformers>
<transformer class="org.jboss.as.hibernate.Hibernate51CompatibilityTransformer"/>
</transformers>
<dependencies>
<module name="com.h2database.h2" />
<module name="org.slf4j"/>
</dependencies>
</deployment>
<sub-deployment name="beans.jar">
<transformers>
<transformer class="org.jboss.as.hibernate.Hibernate51CompatibilityTransformer"/>
</transformers>
</sub-deployment>
<sub-deployment name="main.war">
<transformers>
<transformer class="org.jboss.as.hibernate.Hibernate51CompatibilityTransformer"/>
</transformers>
</sub-deployment>
</jboss-deployment-structure>
{code}
> it's not possible to enable Hibernate Bytecode Transformer using j-d-s.xml
> --------------------------------------------------------------------------
>
> Key: WFWIP-75
> URL: https://issues.jboss.org/browse/WFWIP-75
> Project: WildFly WIP
> Issue Type: Bug
> Components: JPA
> Reporter: Martin Simka
> Assignee: Scott Marlow
> Priority: Blocker
>
> 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
> # 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
> # transformer has private constructor so {{ClassFileTransformerProcessor}} cannot instantiate it
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list