Is there a way to determine during run-time where a specific class is loaded from?
We are using an application server which has several places to put external libraries. Now there is the problem that, for example, several different versions of an apache-commons library is put in different places and nobody can actually tell which of those JAR files is the source in a specific Java class.
Is there a way to ask the class loader where it actually has been loading the class from? What the specific JAR file is?