I have used VaadinSession ( com.vaadin.server.VaadinSession ) in a lot of places in my code. It compiles and runs fine with Java 7 but I get a compile error with Java 8.
The error says :
“Cannot access javax.servlet.http.HttpSessionBindingListener. class file for javax.servlet.http.HttpSessionBindingListener not found.”
I tried inculding this dependency in the pom, but it did not work.
Missing this class file shouldn’t be related to compiling in Java 8. Are you sure the dependency is not corrupt in your Maven cache or something like that?
If the servlet api jar is definitely not corrupted and the only thing you change in your project is maven.compiler.source and maven.compiler.target to be 1.8 instead of 1.7. Then I got nothing. Sorry