title: Vaadin 7.4 , Spring, Tomcat 7 , Change context root using @WebServlet
body: <p>I'm using Vaadin 7.4 with Spring using the "spring4vaadin" - Project. I'm deploying the Application on a Tomcat 7.0.29 with Servlet API 3.0.</p>
  
  <p>I deploy the Application under the Root-Context of Tomcat ("/") and I'm using the @WebServlet-Annotation to set the actual context of the App to "/esb/*":</p>
  
  <pre><code>@WebServlet( value = "/esb/*"  , asyncSupported = true )
  public static class Servlet extends SpringVaadinServlet {
  </code></pre>
  
  <p>}</p>
  
  <p>But every time when I navigate to the App-URL "<a href="http://localhost:8080/esb/" rel="nofollow">http://localhost:8080/esb/</a>" I get the error message: "Failed to load the bootstrap javascript ./../VAADIN/vaadinBootstrap.js?v=7.4.0" in a Browser-Pop-Up from Vaadin.</p>
  
  <p>By web.xml looks like this:</p>
  
  <pre><code>&lt;web-app id="ESAB_Cutting_Prototyping" version="3.0"
       xmlns="http://java.sun.com/xml/ns/javaee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
       http://java.sun.com/xml/ns/j2ee/web-app_3_0.xsd"
       metadata-complete="false"&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>If I set the context in the Tomcat Deployment-Configuration of my Intellij IDE it works without any problems.</p>
  
  <p>I have no idea what to do - any help is greatly appreciated.</p>