I run into a ClassCastException:
Cannot cast my.package.classA to my.package.classA.
Note that the (canonical) class (name) is the same.
I understand this should be related to different class loaders and/or loading the class from different jars. The project is built using Maven. Can I debug somehow which classloader was used in each case and from which jar the classes have been loaded?


