In an implementation of org.dozer.BeanFactory.createBean(Object, Class<?>, String)
I try to cast the object to type of it. If I deploy all my bundles, that is to shut down and start all bundles I got a ClassCastException:
java.lang.ClassCastException: de.xxx.Configuration cannot be cast to de.xxx.Configuration
I suspect a problem with the ClassLoaders of karaf and/or dozer. This class only one time exists in my jars and they isn't modified. Configuration doesn't implement serializeable and has no serial version id.
How to avoid this Exception?
kind regards