我正在使用带有JSF 2.2和Jboss wildfly的Primefaces 5.0.4。我确实设置了如下气氛:
pom.xml
<dependency>
<groupId>org.atmosphere</groupId>
<artifactId>atmosphere-runtime-native</artifactId>
<version>2.1.3</version>
</dependency>
<dependency>
<groupId>org.atmosphere.jboss.as</groupId>
<artifactId>jboss-as-websockets</artifactId>
<version>0.5</version>
</dependency>web.xml
<servlet>
<servlet-name>Push Servlet</servlet-name>
<servlet-class>org.primefaces.push.PushServlet</servlet-class>
<async-supported>true</async-supported>
</servlet>
<servlet-mapping>
<servlet-name>Push Servlet</servlet-name>
<url-pattern>/primepush/*</url-pattern>
</servlet-mapping>当我启动我的应用程序时,抛出以下错误:
Exception handling request to /test/primepush/notify: org.atmosphere.cpr.AtmosphereMappingException: No AtmosphereHandler found. Make sure you define it inside WEB-INF/atmosphere.xml or annotate using @___Service根据primefaces showcase和primefaces用户指南,你不需要做任何进一步的配置。有人知道它为什么不工作吗?
问候
发布于 2014-09-23 05:09:35
PrimeFaces 5推送不能使用atmosphere runtime-native:https://code.google.com/p/primefaces/issues/detail?id=7189
在我的例子中,由于我目前只使用web套接字,所以用常规atmosphere运行时替换解决了这个问题。
https://stackoverflow.com/questions/24909453
复制相似问题