|
@@ -20,6 +20,7 @@ package org.apache.hadoop.yarn.webapp;
|
|
|
|
|
|
import static com.google.common.base.Preconditions.checkNotNull;
|
|
import static com.google.common.base.Preconditions.checkNotNull;
|
|
|
|
|
|
|
|
+import java.io.IOException;
|
|
import java.net.ConnectException;
|
|
import java.net.ConnectException;
|
|
import java.net.URL;
|
|
import java.net.URL;
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
@@ -191,7 +192,9 @@ public class WebApps {
|
|
webapp.setHttpServer(server);
|
|
webapp.setHttpServer(server);
|
|
server.start();
|
|
server.start();
|
|
LOG.info("Web app /"+ name +" started at "+ server.getPort());
|
|
LOG.info("Web app /"+ name +" started at "+ server.getPort());
|
|
- } catch (Exception e) {
|
|
|
|
|
|
+ } catch (ClassNotFoundException e) {
|
|
|
|
+ throw new WebAppException("Error starting http server", e);
|
|
|
|
+ } catch (IOException e) {
|
|
throw new WebAppException("Error starting http server", e);
|
|
throw new WebAppException("Error starting http server", e);
|
|
}
|
|
}
|
|
Injector injector = Guice.createInjector(webapp, new AbstractModule() {
|
|
Injector injector = Guice.createInjector(webapp, new AbstractModule() {
|