container.deploy('/' + (context == null ? warFile.getName() : context), warFile, true);
} else {
if (useProjectClasspath) {
thread.setContextClassLoader(createClassLoader(loader));
}
container.deployClasspathAsWebApp(context, docBase); // null is handled properly so no issue here
}
getLog().info("TomEE embedded started on " + config.getHost() + ":" + config.getHttpPort());
} catch (Exception e) {
getLog().error("can't start TomEE", e);