Turns out Hub and Standalone have different `DriverServlet`'s
Ooops.
import org.openqa.grid.web.servlet.beta.ConsoleServlet;
import org.openqa.grid.web.utils.ExtraServletUtil;
import org.openqa.selenium.net.NetworkUtils;
-import org.openqa.selenium.remote.server.WebDriverServlet;
import org.seleniumhq.jetty9.server.HttpConfiguration;
import org.seleniumhq.jetty9.server.HttpConnectionFactory;
import org.seleniumhq.jetty9.server.Server;
@@ -104,15 +103,8 @@ private void addDefaultServlets(ServletContextHandler handler) {
// add mandatory default servlets
handler.addServlet(RegistrationServlet.class.getName(), "/grid/register/*");
- if (config.enablePassThrough) {
- log.info("Using the experimental passthrough mode");
handler.addServlet(DriverServlet.class.getName(), "/wd/hub/*");
handler.addServlet(DriverServlet.class.getName(), "/selenium-server/driver/*");
- } else {
- handler.addServlet(WebDriverServlet.class.getName(), "/wd/hub/*");
- handler.addServlet(WebDriverServlet.class.getName(), "/selenium-server/driver/*");
- }
-
handler.addServlet(ProxyStatusServlet.class.getName(), "/grid/api/proxy/*");
