Hi all, I'm trying to migrate existing services from 3.2.1 to 3.3. While deploying SA on 3.3 NoClassDefFoundError occurs while instantiating some IBatis references from xbean.xml - which doesn't happen on 3.2.1. I have ibatis.jar in SU lib directory.
I searched through code and found some changes in AbstractXbeanDeployer in 3.3 : ClassLoader classLoader = component.getClass().getClassLoader(); Thread.currentThread().setContextClassLoader(classLoader); ... applicationContext.refresh(); su.setApplicationContext(applicationContext); // Use SU classloader Thread.currentThread().setContextClassLoader(su.getConfigurationClassLoader()); initApplicationContext(applicationContext); So it looks like refresh() method is called with component's class loader and classes from within SU jars are not loaded - and NoClassDefFound is raised. This problem is related to servicemix-jsr181, IBatis classes on servicemix-camel are loaded without errors. Any suggestions? Regards, Piotr -- View this message in context: http://www.nabble.com/SU-deployed-on-servicemix-jsr181-2008.01-couldn%27t-find-classes-from-jars-included-in-SU-lib-directory-tp21379285p21379285.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
