title: Vaadin 7 example showing "Cookies Disabled" message when deployed to tomcat 7
body: <p>I'm struggling with a matter that confuses me and leaves me thinking if the problem comes from the tomcat or vaadin.</p>
  
  <p>The application: The application i created is the starting project you can build with eclipse and vaadin 7 plugin, that builds a page with a button. Whenever you click the button, a line of text appears below, clicking more times adds more lines.</p>
  
  <p>The problem: This application ran on eclipse like a charm with a tomcat server. However, when i deploy to a tomcat 7 server running on an apache server, i retreive the "Cookies Disabled" message, in whatever browser i use (IE, Firefox and chrome), and even removing all security and accepting all cookies from each browser, it doesn't seem to work.</p>
  
  <p>The code it generates is the following:
  EvotestUI.java</p>
  
  <pre><code>import javax.servlet.annotation.WebServlet;
  
  import com.vaadin.annotations.Theme;
  import com.vaadin.annotations.VaadinServletConfiguration;
  import com.vaadin.server.VaadinRequest;
  import com.vaadin.server.VaadinServlet;
  import com.vaadin.ui.Button;
  import com.vaadin.ui.Button.ClickEvent;
  import com.vaadin.ui.Label;
  import com.vaadin.ui.UI;
  import com.vaadin.ui.VerticalLayout;
  
  @SuppressWarnings("serial")
  @Theme("evotest")
  public class EvotestUI extends UI {
  
  @WebServlet(value = "/*", asyncSupported = false)
  @VaadinServletConfiguration(productionMode = false, ui = EvotestUI.class)
  public static class Servlet extends VaadinServlet {
  }
  
  @Override
  protected void init(VaadinRequest request) {
      final VerticalLayout layout = new VerticalLayout();
      layout.setMargin(true);
      setContent(layout);
  
      Button button = new Button("Click Me");
      button.addClickListener(new Button.ClickListener() {
          public void buttonClick(ClickEvent event) {
              layout.addComponent(new Label("Thank you for clicking"));
          }
      });
      layout.addComponent(button);
  }
  
  }
  </code></pre>
  
  <p>ivysettings.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;ivysettings&gt;
  &lt;settings defaultResolver="default" /&gt;
  &lt;resolvers&gt;
  &lt;chain name="default"&gt;
  &lt;!-- Public Maven repository --&gt;
  &lt;ibiblio name="public" m2compatible="true" /&gt;
  &lt;!-- Vaadin Add-on repository --&gt;
  &lt;ibiblio name="vaadin-addons" usepoms="true" m2compatible="true"root="http://maven.vaadin.com/vaadin-addons" /&gt;
  &lt;!-- Vaadin snapshots repository --&gt;
  &lt;ibiblio name="vaadin-snapshots" usepoms="true" m2compatible="true" root="https://oss.sonatype.org/content/repositories/vaadin-snapshots" /&gt;
  &lt;!-- Repository used for Vaadin modified smartsprites library --&gt;
  &lt;dual name="custom-smartsprites"&gt;
  &lt;filesystem name="smartsprites-ivy"&gt;
  &lt;ivy pattern="${basedir}/ivymodule/[module]-ivy-[revision].xml" /&gt;
  &lt;/filesystem&gt;
  &lt;url name="smartsprites-artifact"&gt;
  &lt;artifact pattern="http://dev.vaadin.com/svn/versions/6.8/build/smartsprites/lib/[artifact](-[revision]).[ext]" /&gt;
  &lt;/url&gt;
  &lt;/dual&gt;
  &lt;/chain&gt;
  &lt;/resolvers&gt;
  &lt;modules&gt;
  &lt;!-- Vaadin patched SmartSprites --&gt;
  &lt;module organisation="com.carrotsearch" name="smartsprites" revision="0.2.3-itmill" resolver="custom-smartsprites" /&gt;
  &lt;/modules&gt;
  &lt;/ivysettings&gt;
  </code></pre>
  
  <p>ivy.xml</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;!DOCTYPE ivy-module [&lt;!ENTITY vaadin.version "7.1.12"&gt;]&gt;
  &lt;ivy-module version="2.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd"&gt;
  &lt;info organisation="com.example" module="v7proj" /&gt;
  &lt;configurations&gt;
      &lt;!-- The default configuration, which should be deployed to the server --&gt;
      &lt;conf name="default" /&gt;
      &lt;!-- A configuration only needed when compiling the widget set. Should 
          not be deployed to the server --&gt;
      &lt;conf name="widgetset-compile" /&gt;
      &lt;!-- A configuration used in compilation of server side classes only.
          Should be deployed to the server --&gt;
      &lt;conf name="nodeploy" /&gt;
  &lt;/configurations&gt;
  &lt;dependencies defaultconf="default" defaultconfmapping="default-&gt;default"&gt;
      &lt;!-- The core server part of Vaadin --&gt;
      &lt;dependency org="com.vaadin" name="vaadin-server" rev="&amp;vaadin.version;" /&gt;
  
      &lt;!-- Vaadin themes --&gt;
      &lt;dependency org="com.vaadin" name="vaadin-themes" rev="&amp;vaadin.version;" /&gt;
  
      &lt;!-- Push support --&gt;
      &lt;dependency org="com.vaadin" name="vaadin-push" rev="&amp;vaadin.version;" /&gt;
  
      &lt;!-- Servlet 3.0 API --&gt;
      &lt;dependency org="javax.servlet" name="javax.servlet-api" rev="3.0.1" conf="nodeploy-&gt;default" /&gt;
  
      &lt;!-- Precompiled DefaultWidgetSet --&gt;
      &lt;dependency org="com.vaadin" name="vaadin-client-compiled"
          rev="&amp;vaadin.version;" /&gt;
  
      &lt;!-- Vaadin client side, needed for widget set compilation --&gt;
      &lt;dependency org="com.vaadin" name="vaadin-client" rev="&amp;vaadin.version;"
           conf="widgetset-compile-&gt;default" /&gt;
  
      &lt;!-- Compiler for custom widget sets. Should not be deployed --&gt;
      &lt;dependency org="com.vaadin" name="vaadin-client-compiler"
          rev="&amp;vaadin.version;" conf="widgetset-compile-&gt;default" /&gt;
  &lt;/dependencies&gt;
  &lt;/ivy-module&gt;
  </code></pre>