Meaning of java.lang.ClassCastException: someClass incompatible with someClass

Philippe Riand explaned this by email: This class cast happens because the same class had been loaded twice by 2 different class loaders. Thus, from a Java standpoint, they are different and the cast fails. Now, each XPages application is having its own classloader. But this class loader is discarded each time a design change … Read more