|
In our environment with IBM WAS 8.5, we get the following exception upon activating the hibernate.ejb.use_class_enhancer option:
This is due to a missing classpath in the created classpool in class JavassistClassTransformer:
ClassPool cp = new ClassPool();
cp.appendSystemPath();
cp.appendClassPath(new ClassClassPath(this.getClass()));
cp.appendClassPath(new ClassClassPath(classfile.getClass()));
cp.appendClassPath(new LoaderClassPath(loader));
The problem occurs because we have hibernate defined in a shared library and not included directly in the application itself. Thus it's not possible through the hibernate classloader to find the needed application classes. With the aforementioned change, the runtime weaving is working as expected.
|