<param-name>application</param-name>
<param-value>com.vaadin.tests.components.button.Buttons</param-value>
</init-param>
- <init-param>
- <param-name>org.atmosphere.cpr.scanClassPath</param-name>
- <param-value>false</param-value>
- </init-param>
<async-supported>true</async-supported>
</servlet>
<servlet>
<param-name>UI</param-name>
<param-value>com.vaadin.tests.components.label.MarginsInLabels</param-value>
</init-param>
- <init-param>
- <param-name>org.atmosphere.cpr.scanClassPath</param-name>
- <param-value>false</param-value>
- </init-param>
<async-supported>true</async-supported>
</servlet>
<servlet>
<param-name>UI</param-name>
<param-value>com.vaadin.tests.VerifyAssertionsEnabled</param-value>
</init-param>
- <init-param>
- <param-name>org.atmosphere.cpr.scanClassPath</param-name>
- <param-value>false</param-value>
- </init-param>
<async-supported>true</async-supported>
</servlet>
<param-name>legacyPropertyToString</param-name>
<param-value>false</param-value>
</init-param>
- <init-param>
- <param-name>org.atmosphere.cpr.scanClassPath</param-name>
- <param-value>false</param-value>
- </init-param>
<init-param>
<param-name>heartbeatInterval</param-name>
<param-value>301</param-value>
because it modifies the VaadinService timeout parameters -->
<servlet-name>VaadinApplicationRunnerWithTimeoutRedirect</servlet-name>
<servlet-class>com.vaadin.launcher.ApplicationRunnerServlet</servlet-class>
- <init-param>
- <param-name>org.atmosphere.cpr.scanClassPath</param-name>
- <param-value>false</param-value>
- </init-param>
</servlet>
<servlet>
<param-name>pushmode</param-name>
<param-value>automatic</param-value>
</init-param>
- <init-param>
- <param-name>org.atmosphere.cpr.scanClassPath</param-name>
- <param-value>false</param-value>
- </init-param>
<async-supported>true</async-supported>
</servlet>
<param-name>UI</param-name>
<param-value>com.vaadin.tests.integration.ServletIntegrationUI</param-value>
</init-param>
- <init-param>
- <param-name>org.atmosphere.cpr.scanClassPath</param-name>
- <param-value>false</param-value>
- </init-param>
<async-supported>true</async-supported>
</servlet>
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.nio.SelectChannelConnector;
import org.eclipse.jetty.server.ssl.SslSocketConnector;
+import org.eclipse.jetty.servlet.ServletHolder;
import org.eclipse.jetty.util.Scanner;
import org.eclipse.jetty.util.ssl.SslContextFactory;
import org.eclipse.jetty.webapp.WebAppContext;
}
}
+ // Read web.xml to find all configured servlets
+ webappcontext.start();
+
+ // Reconfigure all servlets to avoid startup delay
+ for (ServletHolder servletHolder : webappcontext.getServletHandler()
+ .getServlets()) {
+ if (servletHolder
+ .getInitParameter("org.atmosphere.cpr.scanClassPath") == null) {
+ servletHolder.setInitParameter(
+ "org.atmosphere.cpr.scanClassPath", "false");
+ }
+ }
+
try {
server.start();