]> source.dussan.org Git - vaadin-framework.git/commitdiff
Use a separate servlet instance for static files during testing
authorArtur Signell <artur@vaadin.com>
Wed, 20 Aug 2014 19:13:40 +0000 (22:13 +0300)
committerVaadin Code Review <review@vaadin.com>
Thu, 21 Aug 2014 09:52:52 +0000 (09:52 +0000)
There is something strange going on in Tomcat 8 and/or Atmosphere where
the websocket endpoint is deployed for /VAADIN/* and not for /run/* when
the same servlet is used

Change-Id: If0f5d7b87e410feeb53d1407919fa30cc794468a

WebContent/WEB-INF/web.xml

index 9ca5be2bdf989571b8fad2708f2867d32cc806ce..18c06795c01ba14cb6ae4d0ece2168d01b0a90be 100644 (file)
         <async-supported>true</async-supported>
     </servlet>
 
+    <servlet>
+        <servlet-name>VaadinStaticFiles</servlet-name>
+        <servlet-class>com.vaadin.server.VaadinServlet</servlet-class>
+        <async-supported>false</async-supported>
+    </servlet>
     <servlet>
         <servlet-name>VaadinApplicationRunner</servlet-name>
         <servlet-class>com.vaadin.launcher.ApplicationRunnerServlet</servlet-class>
     </servlet>
 
     <servlet>
-        <!-- 
-            This servlet is a separate instance for the sole purpose of 
+        <!-- This servlet is a separate instance for the sole purpose of 
             testing #12446 (com.vaadin.tests.components.ui.TimeoutRedirectResetsOnActivity) 
-            because it modifies the VaadinService timeout parameters 
-        -->
+            because it modifies the VaadinService timeout parameters -->
         <servlet-name>VaadinApplicationRunnerWithTimeoutRedirect</servlet-name>
         <servlet-class>com.vaadin.launcher.ApplicationRunnerServlet</servlet-class>
         <init-param>
             <param-value>false</param-value>
         </init-param>
     </servlet>
-    
+
     <servlet>
         <servlet-name>VaadinApplicationRunnerWithPush</servlet-name>
         <servlet-class>com.vaadin.launcher.ApplicationRunnerServlet</servlet-class>
     </servlet-mapping>
 
     <servlet-mapping>
-        <servlet-name>VaadinApplicationRunner</servlet-name>
+        <servlet-name>VaadinStaticFiles</servlet-name>
         <url-pattern>/VAADIN/*</url-pattern>
     </servlet-mapping>