installation.getSource(),
installation.getDirectory(),
installation.getWorkDirectory(),
installation.getClassPath() );
//assemble all the blocks for application
final SarMetaData metaData =
m_assembler.assembleSar( name, assembly, directory, classLoader );
storeConfigurationSchemas( metaData, classLoader );
verify( metaData, classLoader );
//Setup configuration for all the applications blocks
setupConfiguration( metaData, config.getChildren() );
final Configuration logs = environment.getChild( "logs" );
final Logger logger =
m_logManager.createHierarchy( metaData, logs, classLoader );
//Finally add application to kernel
m_kernel.addApplication( metaData,
installation.getWorkDirectory(),
classLoader,
logger,
environment );
m_installations.put( metaData.getName(), installation );
final String message =
REZ.getString( "deploy.notice.sar.add",
metaData.getName(),
Arrays.asList( installation.getClassPath() ) );
getLogger().debug( message );
success = true;
}
catch( final DeploymentException de )