vaadin7.1 server push 报错!!!

NFO [org.atmosphere.cpr.AtmosphereFramework]
(http-localhost/127.0.0.1:8080-2) Installed AtmosphereHandler com.vaadin.server.communication.PushHandler mapped to context-path: /*
23:19:16,106 ERROR [org.atmosphere.cpr.AtmosphereFramework]
(http-localhost/127.0.0.1:8080-2) Failed to initialize Atmosphere Framework: java.lang.IllegalStateException: JBWEB000225: Context /checkout is already initialized
at org.apache.catalina.core.ApplicationContext.addListener(ApplicationContext.java:1102) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

at org.apache.catalina.core.ApplicationContextFacade.addListener(ApplicationContextFacade.java:559) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

at org.atmosphere.cpr.AtmosphereFramework.doInitParams(AtmosphereFramework.java:835) [atmosphere-runtime-1.0.13.jar:1.0.13]

at org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:527) [atmosphere-runtime-1.0.13.jar:1.0.13]

at com.vaadin.server.communication.PushRequestHandler.<init>(PushRequestHandler.java:87) [vaadin-server-7.1-SNAPSHOT.jar:7.1.0.nightly-f7f1e3ece5206c335487ce25f4e709370024109d-101]

at com.vaadin.server.VaadinServletService.createRequestHandlers(VaadinServletService.java:89) [vaadin-server-7.1-SNAPSHOT.jar:7.1.0.nightly-f7f1e3ece5206c335487ce25f4e709370024109d-101]

at com.vaadin.server.VaadinService.init(VaadinService.java:148) [vaadin-server-7.1-SNAPSHOT.jar:7.1.0.nightly-f7f1e3ece5206c335487ce25f4e709370024109d-101]

at com.vaadin.server.VaadinServlet.createServletService(VaadinServlet.java:139) [vaadin-server-7.1-SNAPSHOT.jar:7.1.0.nightly-f7f1e3ece5206c335487ce25f4e709370024109d-101]

at com.vaadin.server.VaadinServlet.init(VaadinServlet.java:87) [vaadin-server-7.1-SNAPSHOT.jar:7.1.0.nightly-f7f1e3ece5206c335487ce25f4e709370024109d-101]

at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1194) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:950) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:151) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21]

23:19:16,107 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web]
.[default-host]
.
[/checkout].[Checkout Application]
] (http-localhost/127.0.0.1:8080-2) JBWEB000235: Allocate exception for servlet Checkout Application: java.lang.IllegalStateException: JBWEB000225: Context /checkout is already initialized
at org.apache.catalina.core.ApplicationContext.addListener(ApplicationContext.java:1102) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

at org.apache.catalina.core.ApplicationContextFacade.addListener(ApplicationContextFacade.java:559) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

at org.atmosphere.cpr.AtmosphereFramework.doInitParams(AtmosphereFramework.java:835) [atmosphere-runtime-1.0.13.jar:1.0.13]

at org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:527) [atmosphere-runtime-1.0.13.jar:1.0.13]

at com.vaadin.server.communication.PushRequestHandler.<init>(PushRequestHandler.java:87) [vaadin-server-7.1-SNAPSHOT.jar:7.1.0.nightly-f7f1e3ece5206c335487ce25f4e709370024109d-101]

at com.vaadin.server.VaadinServletService.createRequestHandlers(VaadinServletService.java:89) [vaadin-server-7.1-SNAPSHOT.jar:7.1.0.nightly-f7f1e3ece5206c335487ce25f4e709370024109d-101]

at com.vaadin.server.VaadinService.init(VaadinService.java:148) [vaadin-server-7.1-SNAPSHOT.jar:7.1.0.nightly-f7f1e3ece5206c335487ce25f4e709370024109d-101]

at com.vaadin.server.VaadinServlet.createServletService(VaadinServlet.java:139) [vaadin-server-7.1-SNAPSHOT.jar:7.1.0.nightly-f7f1e3ece5206c335487ce25f4e709370024109d-101]

at com.vaadin.server.VaadinServlet.init(VaadinServlet.java:87) [vaadin-server-7.1-SNAPSHOT.jar:7.1.0.nightly-f7f1e3ece5206c335487ce25f4e709370024109d-101]

at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1194) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:950) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:151) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21]

麻烦你能不能贴出来你是怎么用SERVER PUSH的?只这么一堆错误代码,让人很没有头绪

我只是仅仅创建了vaadin7.1的 空项目 在部署到jboss的时候,没有发生任何问题,但是在运行的时候,出现上面的问题了???–没有写代码。。。

看你用的是7.1的nightly build, 有没试下BETA1?
JBOSS也CLEAR一下?

非常感谢你的帮助!!! 找到原因了:我将 注释掉 就好了。 好像 在用7.1的nightly build,来创建项目的时候,web.xml文件 没有相应的配置,只是集成了相应的包文件而已!!!