org.argeo.node.repofactory.jackrabbit,\
org.argeo.node.repo.jackrabbit,\
org.argeo.security.dao.os,\
-org.argeo.security.equinox,\
org.argeo.slc.node.jackrabbit,\
org.argeo.slc.agent,\
org.argeo.slc.agent.jcr
## Levels
log4j.logger.org.argeo=INFO
-#log4j.logger.org.springframework=DEBUG
-#log4j.logger.org.hibernate=DEBUG
-#log4j.logger.org.apache.activemq=DEBUG
-
-log4j.logger.org.springframework.web.servlet.PageNotFound=ERROR
-log4j.logger.org.apache.directory.server.core.schema.SchemaService=ERROR
-log4j.logger.org.springframework.security.SpringSecurityMessageSource=ERROR
-
-log4j.logger.org.apache.directory.server.core.partition=ERROR
-log4j.logger.org.apache.directory.server.core.schema.bootstrap.BootstrapAttributeTypeRegistry=ERROR
## Appenders
log4j.appender.console=org.apache.log4j.ConsoleAppender
cp /etc/slc-cl/config.ini $CONF_DIR
fi
+# WORKAROUND: Clean up workspace directories
+rmdir $DATA_DIR/node/workspaces/*
+
java \
-Dslc.launch.module="$MODULE" \
-Dslc.launch.flow="$FLOW" \
* @param osgiBundle
* cannot be null
* @return the related bundle or null if not found
+ * @throws SlcException
+ * if osgiBundle argument is null
*/
public Bundle findRelatedBundle(OsgiBundle osgiBundle) {
+ if (osgiBundle == null)
+ throw new SlcException("OSGi bundle cannot be null");
+
Bundle bundle = null;
if (osgiBundle.getInternalBundleId() != null) {
bundle = bundleContext.getBundle(osgiBundle.getInternalBundleId());
log.debug("Launch unique flow " + flow + " from module " + module);
try {
OsgiBundle osgiBundle = bundlesManager.findFromPattern(module);
+ if (osgiBundle == null)
+ throw new SlcException("No OSGi bundle found for " + module);
Bundle moduleBundle = bundlesManager.findRelatedBundle(osgiBundle);
bundlesManager.startSynchronous(moduleBundle);
RealizedFlow lastLaunch = findRealizedFlow(module, flow);