We recently upgraded hibernate from 4.0.1
to 4.2.8.Final
.
Hibernate.4.2.8.Final
is depending on javassist-3.18.1-GA
. Unfortunately websphere is 8.5.5 is not shipped with latest javassist but it is not my issue. I tried to force websphere to take my javassist jar but I FAILED ( for some reason it is always loading from ${WAS_INSTALL_ROOT}/plugins
).
What I tried?
- Classes loaded with local class loader first (parent last) in websphere console and WEB-INF/lib contains latest javassist jar. But application is not working
- Put latest javassit jar in
${WAS_INSTALL_ROOT}/lib/ext
but no use - Added shared library and referenced in application but no luck.
- If I replace javassist.jar in
${WAS_INSTALL_ROOT}/plugins
then application started working but this is not good solution because other web applications might depend on old javassist
My question
How can I use (or inject or refer) latest javassist jar in Websphere 8.5.5?
This #blog helped me to figure our the problem little quickly.