[英]Vaadin 7 : java.lang.IllegalStateException: Push is not available
Why i'm getting this error : 为什么我收到此错误:
javax.servlet.ServletException: com.vaadin.server.ServiceException: java.lang.IllegalStateException: Push is not available. See previous log messages for more information.
com.vaadin.server.VaadinServlet.service(VaadinServlet.java:240)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
When i'm using the Push annotation : 当我使用Push注释时:
@Push(PushMode.MANUAL)
public class KopivaadincomponentsUI extends UI {
@Override
protected void init(VaadinRequest request) {...
}
}
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-push</artifactId>
<version>${com.vaadin.version}</version>
</dependency>
Try adding this Dependency to your .pom file. 尝试将此依赖项添加到.pom文件中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.