[hibernate-dev] How to enable Javassist when running a WildFly unit test?

Steve Ebersole steve at hibernate.org
Mon Aug 27 10:17:34 EDT 2018


To clarify, `/hibernate.properties` (at root of class path) will work.
That one (if exists) is always read during boot.

On Mon, Aug 27, 2018 at 9:14 AM Chris Cranford <chris at hibernate.org> wrote:

> Technically the -D parameter should work; however I know a
> hibernate.properties file works.
>
> On 08/24/2018 11:54 PM, Gail Badner wrote:
> > I tried running:
> >
> > mvn clean test -Dtest=HibernateNativeAPINaturalIdTestCase
> > -Dhibernate.bytecode.provider=javassist -Dsecurity.manager=true
> >
> > The result is a permissions failure, and ByteBuddy is in the stacktrace.
> >
> > I also tried adding the property to the StandardServiceRegistryBuilder
> > built by SFSBHibernateSFNaturalId, and that didn't work either.
> >
> > Is there some other way to enable javassist?
> >
> > Thanks,
> > Gail
> > _______________________________________________
> > hibernate-dev mailing list
> > hibernate-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/hibernate-dev
>
> _______________________________________________
> 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