Vaadin and embedded Undertow

Hello Colleagues,

I’m trying to use Vaadin with embedded Undertow servlet container and I got “Cookies disabled” when click button.
Could you please help. Thanks.

I create vaadin application using maven archetype,
add undertow dependencies from
and create class

public class HelloWorldServer {

    public static void main(final String[] args) {
        try {

            DeploymentInfo servletBuilder = deployment()
                    .setResourceManager(new FileResourceManager(new File("src/main/webapp"), 1024))
                            servlet("VaadinServlet", VaadinServlet.class)
                            .addInitParam("ui", "org.test.MyVaadinUI").addInitParam("widgetset", "org.test.AppWidgetSet")

            DeploymentManager manager = defaultContainer().addDeployment(servletBuilder);

            Undertow server = Undertow.builder()
                    .addListener(8080, "localhost")
        } catch (ServletException e) {
            throw new RuntimeException(e);