@Override public void start(String name) throws Exception { Context ctx = findContext(name); if (ctx != null) { ctx.start(); } }
context.start(); } catch (Exception e) { log.warn(sm.getString
return; context.start(); if (context.getAvailable()) writer.println(smClient.getString("managerServlet.started",
return; context.start(); if (context.getAvailable()) writer.println(smClient.getString("managerServlet.started",
return; context.start(); if (context.getAvailable()) writer.println(smClient.getString("managerServlet.started",
return; context.start(); if (context.getState().isAvailable()) writer.println(smClient.getString("managerServlet.started",
return; context.start(); if (context.getAvailable()) writer.println(smClient.getString("managerServlet.started",
return; context.start(); if (context.getState().isAvailable()) writer.println(smClient.getString("managerServlet.started",
return; context.start(); if (context.getState().isAvailable()) writer.println(smClient.getString("managerServlet.started",
return; context.start(); if (context.getState().isAvailable()) writer.println(smClient.getString("managerServlet.started",
private void reload(DeployedApplication app) { if(log.isInfoEnabled()) log.info(sm.getString("hostConfig.reload", app.name)); Context context = (Context) host.findChild(app.name); if (context.getState().isAvailable()) { // Reload catches and logs exceptions context.reload(); } else { // If the context was not started (for example an error // in web.xml) we'll still get to try to start try { context.start(); } catch (Exception e) { log.warn(sm.getString ("hostConfig.context.restart", app.name), e); } } }
private void reload(DeployedApplication app, File fileToRemove, String newDocBase) { if(log.isInfoEnabled()) log.info(sm.getString("hostConfig.reload", app.name)); Context context = (Context) host.findChild(app.name); if (context.getState().isAvailable()) { if (fileToRemove != null && newDocBase != null) { context.addLifecycleListener( new ExpandedDirectoryRemovalListener(fileToRemove, newDocBase)); } // Reload catches and logs exceptions context.reload(); } else { // If the context was not started (for example an error // in web.xml) we'll still get to try to start if (fileToRemove != null && newDocBase != null) { ExpandWar.delete(fileToRemove); context.setDocBase(newDocBase); } try { context.start(); } catch (Exception e) { log.warn(sm.getString ("hostConfig.context.restart", app.name), e); } } }
private void reload(DeployedApplication app, File fileToRemove, String newDocBase) { if(log.isInfoEnabled()) log.info(sm.getString("hostConfig.reload", app.name)); Context context = (Context) host.findChild(app.name); if (context.getState().isAvailable()) { if (fileToRemove != null && newDocBase != null) { context.addLifecycleListener( new ExpandedDirectoryRemovalListener(fileToRemove, newDocBase)); } // Reload catches and logs exceptions context.reload(); } else { // If the context was not started (for example an error // in web.xml) we'll still get to try to start if (fileToRemove != null && newDocBase != null) { ExpandWar.delete(fileToRemove); context.setDocBase(newDocBase); } try { context.start(); } catch (Exception e) { log.warn(sm.getString ("hostConfig.context.restart", app.name), e); } } }