Closed Suro4ek closed 4 years ago
You might need a org.switchyard.common.type.CompoundClassLoader in your onEnable():
org.switchyard.common.type.CompoundClassLoader
onEnable()
... List<ClassLoader> springClassLoaders = new ArrayList<>(); springClassLoaders.add(getClassLoader()); springClassLoaders.add(Thread.currentThread().getContextClassLoader()); ClassLoader classLoader = new CompoundClassLoader(springClassLoaders); Thread.currentThread().setContextClassLoader(classLoader); ResourceLoader loader = new DefaultResourceLoader(classLoader); SpringApplication application = new SpringApplication(loader, Application.class); ...
I believe this is needed since 1.15.2 for some reason. This is what I am using right now and it works perfectly.
You might need a
org.switchyard.common.type.CompoundClassLoader
in youronEnable()
:I believe this is needed since 1.15.2 for some reason. This is what I am using right now and it works perfectly.