this.muleContext.start();
}
catch (MuleException e)
{
logger.error(null, ExceptionUtils.getRootCause(e));
throw new DeploymentStartException(CoreMessages.createStaticMessage(ExceptionUtils.getRootCauseMessage(e)), e);
}
}
// null CCL ensures we log at 'system' level
// TODO create a more usable wrapper for any logger to be logged at sys level
final ClassLoader oldCl = Thread.currentThread().getContextClassLoader();
try
{
Thread.currentThread().setContextClassLoader(null);
deployLogger.info(miniSplash(String.format("Started domain '%s'", getArtifactName())));
}
finally
{
Thread.currentThread().setContextClassLoader(oldCl);
}
}
catch (Exception e)
{
throw new DeploymentStartException(CoreMessages.createStaticMessage("Failure trying to start domain " + getArtifactName()), e);
}
}