java.lang.IllegalStateException: Lookup instance is not found in VaadinContext

Hi Marco,

Regarding the initial error mentioned in this thread:

SEVERE: Servlet.service() for servlet [dispatcherServletRegistration] in context with path [] threw exception

java.lang.IllegalStateException: The application Lookup instance is not found in VaadinContext. The instance is supposed to be created by a ServletContainerInitializer. Issues known to cause this problem are:

- A Spring Boot application deployed as a war-file but the main application class does not extend SpringBootServletInitializer

- An embedded server that is not set up to execute ServletContainerInitializers

- Unit tests which do not properly set up the context for the test...........

In our case, the issue was resolved by excluding Hilla from the vaadin-spring-boot-starter dependency, like this:

<dependency>
  <groupId>com.vaadin</groupId>
  <artifactId>vaadin-spring-boot-starter</artifactId>
  <exclusions>
    <exclusion>
      <groupId>com.vaadin</groupId>
      <artifactId>hilla</artifactId>
    </exclusion>
  </exclusions>
</dependency>