summaryrefslogtreecommitdiffstats
path: root/WebContent/WEB-INF
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2014-06-17 11:30:34 +0300
committerLeif Åstrand <leif@vaadin.com>2014-06-17 11:30:34 +0300
commitfa5d9f3d6e7f37386b0f657ab524f85f68850fc1 (patch)
tree23deef717d9c79810cde93cb397fc0b634af60f7 /WebContent/WEB-INF
parentd076dc7317b4f211e95ef560442793cb1200cfc9 (diff)
downloadvaadin-framework-fa5d9f3d6e7f37386b0f657ab524f85f68850fc1.tar.gz
vaadin-framework-fa5d9f3d6e7f37386b0f657ab524f85f68850fc1.zip
Speed up dev server startup
- Don't have Atmosphere scan the entire classpath for annotations - Don't use load-on-startup = -1 since Jetty still inits the servlets - Avoid initing the integration test servlet for serving /VAADIN/* Change-Id: Ic6a650442a11ac87ce15dabce3acda12a9cc71b3
Diffstat (limited to 'WebContent/WEB-INF')
-rw-r--r--WebContent/WEB-INF/web.xml37
1 files changed, 29 insertions, 8 deletions
diff --git a/WebContent/WEB-INF/web.xml b/WebContent/WEB-INF/web.xml
index 9f321b5bc8..268fe1ea66 100644
--- a/WebContent/WEB-INF/web.xml
+++ b/WebContent/WEB-INF/web.xml
@@ -24,8 +24,11 @@
<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>
- <load-on-startup>-1</load-on-startup>
</servlet>
<servlet>
<servlet-name>Embed App 2</servlet-name>
@@ -34,8 +37,11 @@
<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>
- <load-on-startup>-1</load-on-startup>
</servlet>
<servlet>
<servlet-name>UI provider app</servlet-name>
@@ -48,8 +54,11 @@
<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>
- <load-on-startup>-1</load-on-startup>
</servlet>
<servlet>
@@ -61,6 +70,10 @@
<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>
</init-param>
@@ -77,7 +90,6 @@
<param-value>42</param-value>
</init-param>
<async-supported>true</async-supported>
- <load-on-startup>-1</load-on-startup>
</servlet>
<servlet>
@@ -88,7 +100,10 @@
-->
<servlet-name>VaadinApplicationRunnerWithTimeoutRedirect</servlet-name>
<servlet-class>com.vaadin.launcher.ApplicationRunnerServlet</servlet-class>
- <load-on-startup>-1</load-on-startup>
+ <init-param>
+ <param-name>org.atmosphere.cpr.scanClassPath</param-name>
+ <param-value>false</param-value>
+ </init-param>
</servlet>
<servlet>
@@ -99,7 +114,10 @@
<param-value>automatic</param-value>
</init-param>
<async-supported>true</async-supported>
- <load-on-startup>-1</load-on-startup>
+ <init-param>
+ <param-name>org.atmosphere.cpr.scanClassPath</param-name>
+ <param-value>false</param-value>
+ </init-param>
</servlet>
<!-- For testing GAE - the deployment script changes this to use GAEVaadinServlet -->
@@ -111,7 +129,10 @@
<param-value>com.vaadin.tests.integration.ServletIntegrationUI</param-value>
</init-param>
<async-supported>true</async-supported>
- <load-on-startup>-1</load-on-startup>
+ <init-param>
+ <param-name>org.atmosphere.cpr.scanClassPath</param-name>
+ <param-value>false</param-value>
+ </init-param>
</servlet>
<servlet-mapping>
<servlet-name>Embed App 1</servlet-name>
@@ -149,7 +170,7 @@
</servlet-mapping>
<servlet-mapping>
- <servlet-name>IntegrationTest</servlet-name>
+ <servlet-name>VaadinApplicationRunner</servlet-name>
<url-pattern>/VAADIN/*</url-pattern>
</servlet-mapping>