throw new IllegalArgumentException("appServer must not be null");
}
initialized = new InitializationException("Initialized at "+new Date()).fillInStackTrace();
Logger.configure();
Logger logger = Logger.getInstance(LogCategory.OPENEJB_STARTUP, "org.apache.openejb.util.resources");
try {
SystemInstance.init(initProps);
OptionsLog.install();
} catch (Exception e) {
throw new OpenEJBException(e);
}
SystemInstance system = SystemInstance.get();
system.setComponent(DeploymentExceptionManager.class, new DeploymentExceptionManager());
system.setComponent(ApplicationServer.class, appServer);
OpenEjbVersion versionInfo = OpenEjbVersion.get();
if (!system.getOptions().get("openejb.nobanner", true)) {
versionInfo.print(System.out);
}
Logger logger2 = Logger.getInstance(LogCategory.OPENEJB, "org.apache.openejb.util.resources");
final String[] bannerValues = new String[] {
null, versionInfo.getUrl(), new Date().toString(), versionInfo.getCopyright(),
versionInfo.getVersion(), versionInfo.getDate(), versionInfo.getTime(), null
};
for (int i = 0; i < bannerValues.length; i++) {
if (bannerValues[i] == null) {
logger2.info("startup.banner." + i);
} else {
logger2.info("startup.banner." + i, bannerValues[i]);
}
}
logger.info("openejb.home = " + system.getHome().getDirectory().getAbsolutePath());
logger.info("openejb.base = " + system.getBase().getDirectory().getAbsolutePath());