I have a Java project running in Tomcat server.There is a common jar which includes many other jar files including hibernate(A lower version of hibernate). In addition I have a separate hibernate jar which is latest. When my tomcat starts sometimes it takes the hibernate version inside the common jar file and sometimes the separate one.
I want to make sure it always refers to the latest hibernate jar. How can I achieve this ?