-argeo.osgi.start.2.node=\
-org.argeo.cms
-
-argeo.osgi.start.3.http=\
+argeo.osgi.start.2.http=\
org.eclipse.equinox.http.servlet,\
org.eclipse.equinox.http.jetty
+argeo.osgi.start.3.node=\
+org.argeo.cms
+
argeo.osgi.start.4.apps=\
org.eclipse.rap.rwt.osgi,\
org.eclipse.gemini.blueprint.extender
argeo.osgi.start.4.workbench=\
org.eclipse.equinox.http.registry,\
+#argeo.node.repo.maxCacheMB=128
+
org.osgi.service.http.port=7080
org.eclipse.equinox.http.jetty.log.stderr.threshold=info
private final static Log log = LogFactory.getLog(Kernel.class);
private final BundleContext bundleContext;
- private final ThreadGroup threadGroup = new ThreadGroup("Argeo CMS Kernel");
+ // private final ThreadGroup threadGroup = new
+ // ThreadGroup("Argeo CMS Kernel");
private JackrabbitNode node;
private RepositoryFactory repositoryFactory;
}
void init() {
- new Thread(threadGroup, "init") {
- @Override
- public void run() {
- // CMS bundle classloader used during initialisation
- Thread.currentThread().setContextClassLoader(
- Kernel.class.getClassLoader());
- doInit();
- }
- }.start();
+ // new Thread(threadGroup, "init") {
+ // @Override
+ // public void run() {
+ // // CMS bundle classloader used during initialisation
+ // Thread.currentThread().setContextClassLoader(
+ // Kernel.class.getClassLoader());
+ doInit();
+ // }
+ // }.start();
}
- /** Run asynchronously */
protected void doInit() {
+ ClassLoader currentContextCl = Thread.currentThread()
+ .getContextClassLoader();
+ 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();
.getAbsoluteFile();
}
+ static String getFrameworkProp(String key, String def) {
+ String value = Activator.getBundleContext().getProperty(key);
+ if (value == null)
+ return def;
+ return value;
+ }
+
+ static String getFrameworkProp(String key) {
+ return getFrameworkProp(key, null);
+ }
+
// Security
static void anonymousLogin(AuthenticationManager authenticationManager) {
try {