Cookies Disabled - Please Enable Cookies

  • Compile a WAR from default new Vaadin Web Application Project.
  • Drag and Drop to Tomcat webapps folder
  • Go to the URL.
  • Click on a button in the web page - and I get the error …

Cookies Disabled - This application requires cookies to function

Environment:
Netbeans 8
Tomcat 8
Java 8

Here is what I have done.

Tomcat/conf/context.xml

<Context
cookies=“true”
useHttpOnly=“false”

… . . . . .

In Tomcat/webapps/VaadinTest01/META-INF folder
There is a file: context.xml also

set as follows:

<Context

path="/VaadinTest01"
cookies="true"
useHttpOnly="true"

/>

… Restart Tomcat.
Still get error.

I am stumped. Thanks in advance for your help.

Ooh.

in META-INF/context.xml, useHttpOnly=“false” …

Still stumped…

Fixed.

Install fresh copy of NetBeans 8.
Install fresh copy of Java 8 EE
Install fresh copy of Tomcat 8.
Set users and roles in Tomcat.
Download Vaadin framework
Download fresh copy of Vaadin plugin into NetBeans 8.
Set Tomcat as server in NetBeans 8.
In the project, set Vaadin dependencies to 7.2.0 - it was being set to 7.4.x Alpha.
Rebuild project.
Run. Works in the ‘DEV’.
Move WAR to Tomcat webapps - works there too.
Moving on…

Next time check your URL. In my case this works:

http://IP:8080/APP/

and this shows cookies disabled error (notice double //):

http://IP:8080//APP/

d.