[hibernate-dev] Javassist enhancement problems with the Hibernate ORM WildFly modules

Scott Marlow smarlow at redhat.com
Wed Jan 11 10:45:25 EST 2017


>> ## Suggestions?
>> I'm stuck again on Hibernate Search upgrading to latest ORM so I'll
>> see to apply the workaround without waiting for the proper solution.
>> Not sure which actions I should take on ORM?
>>
>> Personally I think I'd just patch the modules to use the older
>> Javassist when running on WildFly; that upgrade should wait for either
>> WildFly to upgrade, or use to rethink these modules.
>>
>> Scott, could you help me by verifying if and were I should open a JIRA
>> for those properties being ignored?
>
> I'm surprised that setting jboss.as.jpa.classtransformer to false,
> doesn't help.  WildFly does have a
> org.jboss.as.test.integration.jpa.mockprovider.classtransformer.ClassFileTransformerTestCase
> test that ensures that jboss.as.jpa.classtransformer=true works but
> doesn't verify that jboss.as.jpa.classtransformer=false also works.
> This would probably help verify that it works.

I verified locally, that setting <property
name="jboss.as.jpa.classtransformer" value="false"/> in the
persistence.xml, ensures that the JPA persistence providers
javax.persistence.spi.ClassTransformer is not called.

If I instead set jboss.as.jpa.classtransformer=true, the
javax.persistence.spi.ClassTransformer is called as expected
(http://pastebin.com/AwjWkKb0 shows the call stack).

>
> Scott
>>
>> Thanks,
>> Sanne
>>
>> 1 - https://docs.jboss.org/author/display/WFLY10/JPA+Reference+Guide#JPAReferenceGuide-Hibernateproperties
>> _______________________________________________
>> hibernate-dev mailing list
>> hibernate-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/hibernate-dev


More information about the hibernate-dev mailing list