refresh causes ClassCastException in 3.0.0

2014-03-27 Thread asookazian2
Bundle is currently active. we exec 'refresh xxx' for that bundle and start that bundle. how to handle this as I've read the same class has been loaded by 2 different classloaders and thus the exception... Caused by: java.lang.ClassCastException:

Re: refresh causes ClassCastException in 3.0.0

2014-03-27 Thread Freeman Fang
Hi, The solution here could be 1. simply eliminate multiple versions for com.nextgate.ms.component.adapter.listener.mm.impl.MMNotifyConfigurationImpl from your container or 2. correctly use use directive in OSGi headers so that the dependency chain could be resolved without any ambiguity