Hello!
I have the maven generated project (https://vaadin.com/wiki/-/wiki/Main/Creating+a+Maven+project)
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;
@Theme("mytheme")
@SuppressWarnings("serial")
public class MyVaadinUI extends UI
{
@WebServlet(value = "/*", asyncSupported = true)
@VaadinServletConfiguration(productionMode = false, ui = MyVaadinUI.class, widgetset = "my.vaadin_application.AppWidgetSet")
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 1");
button.addClickListener(new Button.ClickListener() {
public void buttonClick(ClickEvent event) {
layout.addComponent(new Label("Thank you for clicking"));
}
});
layout.addComponent(button);
}
}
I try to run on WildFly 8.1.0.Final. Everything is ok except the following warning:
23:00:54,809 WARNING [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) SessionSupport error. Make sure you define org.atmosphere.cpr.SessionSupport as a listener in web.xml instead
23:00:54,820 INFO [org.atmosphere.cpr.AtmosphereFramework]
(default task-1) Atmosphere is using org.atmosphere.cpr.DefaultAnnotationProcessor for processing annotation
23:00:54,822 INFO [org.atmosphere.cpr.DefaultAnnotationProcessor]
(default task-1) AnnotationProcessor class org.atmosphere.cpr.DefaultAnnotationProcessor$ServletContainerInitializerAnnotationProcessor being used
23:00:54,824 WARNING [org.atmosphere.cpr.DefaultAnnotationProcessor]
(default task-1) Unable to detect annotations. Application may fail to deploy.
What does “SessionSupport error. Make sure you define org.atmosphere.cpr.SessionSupport as a listener in web.xml instead” mean?
Here is full log http://files.rsdn.ru/12237/log.txt
Thanks in advance.
BR,
AnatolyS