Hi,
I am writing two eclipse plugins. One of my plugins loads hibernate.jar and all of its dependencies. Another one adds some other functionality. In the second plugin I create a new onfiguration, but this always fails with a MappingException. The cause is that the classloader of the first plugin is not the same as the one of the second plugin.
The following code does not give the same results:
Thread.currentThread().getContextClassLoader().loadClass("eg.MyClass");
ReflectHelper.classForName("eg.MyClass");
eg.MyClass is loaded in the second class, but ReflectHelper in the first one. So reflectHelper always gives a MappingException.
Does anyone know how to solve this?
Regards,
Leen Toelen
|