Find out location of a class file from where its loaded at runtime in Java
Recently one of my coleague was facing issue Invalid class loader hierarchy. You have more than one version of ‘org.apache.commons.logging.Log’ visible, which is not allowed. In our class path we found only one version of jar. I removed our jar from classpath it was still giving the same error. I …