本文整理了Java中org.mortbay.jetty.webapp.WebAppContext.stop()
方法的一些代码示例,展示了WebAppContext.stop()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebAppContext.stop()
方法的具体详情如下:
包路径:org.mortbay.jetty.webapp.WebAppContext
类名称:WebAppContext
方法名:stop
暂无
代码示例来源:origin: feroult/yawp
private void restart(WebAppContext webapp) throws Exception {
webapp.stop();
configureClassloader();
webapp.start();
}
代码示例来源:origin: org.springframework.osgi/org.springframework.osgi.web
try {
current.setContextClassLoader(wac.getClassLoader());
wac.stop();
if (contexts != null) {
contexts.removeHandler(wac);
代码示例来源:origin: org.springframework.osgi/spring-osgi-web
try {
current.setContextClassLoader(wac.getClassLoader());
wac.stop();
if (contexts != null) {
contexts.removeHandler(wac);
代码示例来源:origin: apache/tajo
webAppContext.stop();
} catch (Exception e) {
LOG.error("Error while stopping web app context for webapp "
代码示例来源:origin: io.hops/hadoop-common
webAppContext.stop();
} catch (Exception e) {
LOG.error("Error while stopping web app context for webapp "
代码示例来源:origin: org.apache.tajo/tajo-core
webAppContext.stop();
} catch (Exception e) {
LOG.error("Error while stopping web app context for webapp "
代码示例来源:origin: io.hops/hadoop-common
webAppContext.stop();
} catch (Exception e) {
LOG.error("Error while stopping web app context for webapp "
代码示例来源:origin: ch.cern.hadoop/hadoop-common
webAppContext.stop();
} catch (Exception e) {
LOG.error("Error while stopping web app context for webapp "
代码示例来源:origin: com.github.jiayuhan-it/hadoop-common
webAppContext.stop();
} catch (Exception e) {
LOG.error("Error while stopping web app context for webapp "
代码示例来源:origin: ch.cern.hadoop/hadoop-common
webAppContext.stop();
} catch (Exception e) {
LOG.error("Error while stopping web app context for webapp "
代码示例来源:origin: com.github.jiayuhan-it/hadoop-common
webAppContext.stop();
} catch (Exception e) {
LOG.error("Error while stopping web app context for webapp "
代码示例来源:origin: io.hops/hadoop-common
webAppContext.stop();
} catch (Exception e) {
LOG.error("Error while stopping web app context for webapp "
代码示例来源:origin: org.jboss.errai/errai-cdi-jetty
@Override
public void refresh() throws UnableToCompleteException {
String msg = "Reloading web app to reflect changes in "
+ appRootDir.getAbsolutePath();
TreeLogger branch = logger.branch(TreeLogger.INFO, msg);
// Temporarily log Jetty on the branch.
Log.setLog(new JettyTreeLogger(branch));
try {
wac.stop();
server.stop();
wac.start();
server.start();
branch.log(TreeLogger.INFO, "Reload completed successfully");
}
catch (Exception e) {
branch.log(TreeLogger.ERROR, "Unable to restart embedded Jetty server",
e);
throw new UnableToCompleteException();
}
finally {
// Reset the top-level logger.
Log.setLog(new JettyTreeLogger(logger));
}
}
内容来源于网络,如有侵权,请联系作者删除!