3
即時通過使用Primefaces 5.0.4與JSF 2.2和Jboss wildfly。我沒有設置大氣如下:Primefaces 5.0.4沒有AtmosphereHandler發現
的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用戶指南,您不必做任何進一步的配置。有誰知道它爲什麼不起作用?
問候