Primefaces 5.0.4未找到AtmosphereHandler
我将PrimeFaces5.0.4与JSF2.2和Jboss wildfly一起使用。我确实创造了如下氛围: pom.xmlPrimefaces 5.0.4未找到AtmosphereHandler,primefaces,atmosphere,Primefaces,Atmosphere,我将PrimeFaces5.0.4与JSF2.2和Jboss wildfly一起使用。我确实创造了如下氛围: pom.xml <dependency> <groupId>org.atmosphere</groupId> <artifactId>atmosphere-runtime-native</artifactId> <version>2.1.3</version>
<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>
根据primefaces showcase和primefaces用户指南,您无需进行任何进一步的配置。有人知道它为什么不起作用吗
关于PrimeFaces 5推送不适用于大气运行时本机: 在我的例子中,由于我目前只使用web套接字,用常规的atmosphere运行时替换它解决了这个问题
<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