}
void init() {
+ ClassLoader currentContextCl = Thread.currentThread()
+ .getContextClassLoader();
+ // We use the CMS bundle classloader during initialization
+ Thread.currentThread().setContextClassLoader(
+ Kernel.class.getClassLoader());
+
long begin = System.currentTimeMillis();
InternalAuthentication initAuth = new InternalAuthentication(
KernelConstants.DEFAULT_SECURITY_KEY);
} catch (Exception e) {
log.error("Cannot initialize Argeo CMS", e);
throw new ArgeoException("Cannot initialize", e);
+ } finally {
+ Thread.currentThread().setContextClassLoader(currentContextCl);
}
long jvmUptime = ManagementFactory.getRuntimeMXBean().getUptime();