Hibernate and Jersey dependency conflict (javassist) - can anyone explain how this works?
<p>I'm currently using hibernate-4.1.4 and jersey-2.22. These have javassist-3.15 and javassist-3.18 respectively.</p>

<p>I included both hibernate and jersey in my project and to my surprise, there were no dependency conflicts between the said javassists.</p>

<p>I was wondering how Java tells hibernate to use 3.15 and how it tell jersey to use 3.18 since both are in the build path. Is one javassist not being used?</p>

<p>Follow up question: Let's say that javassist-3.15 and javassist-3.18 have a conflict with each other. How do I resolve this? Do I disable both javassists and include one externally? </p>

<p>EDIT: My app is a web app that runs on Tomcat 7. We don't use Maven/Gradle. We just configure the dependencies by putting the jars in the build path using Eclipse.</p>