jsf - PrimePush under Jboss 7.1.1 -


i developing counter example application primepush technology. i'm using promefaces 5.0 , atmosphere 2.1.6 under jboss 7.1.1

i discovered primefaces 3.4.2 , atmosphere 1.0.8 push works. must use primefaces 5.0

so i'm using official primefaces counter example

@managedbean @applicationscoped public class globalcounterview implements serializable{      private volatile int count;      public int getcount() {         return count;     }      public void setcount(int count) {         this.count = count;     }      public void increment() {         count++;          eventbus eventbus = eventbusfactory.getdefault().eventbus();         eventbus.publish("/counter", string.valueof(count));     } } 

here's web.xml

<servlet>     <servlet-name>faces servlet</servlet-name>     <servlet-class>javax.faces.webapp.facesservlet</servlet-class>     <load-on-startup>1</load-on-startup>     <async-supported>true</async-supported> </servlet> <servlet-mapping>     <servlet-name>faces servlet</servlet-name>     <url-pattern>/faces/*</url-pattern> </servlet-mapping> <servlet-mapping>     <servlet-name>faces servlet</servlet-name>     <url-pattern>*.jsf</url-pattern> </servlet-mapping> <servlet>     <servlet-name>push servlet</servlet-name>     <servlet-class>org.primefaces.push.pushservlet</servlet-class>     <init-param>         <param-name>org.atmosphere.usewebsocket</param-name>         <param-value>false</param-value>     </init-param>     <init-param>         <param-name>org.atmosphere.cpr.sessionsupport</param-name>         <param-value>true</param-value>     </init-param>     <init-param>         <param-name>org.atmosphere.usenative</param-name>         <param-value>true</param-value>     </init-param>     <init-param>         <param-name>org.atmosphere.cpr.broadcastercacheclass</param-name>         <param-value>org.atmosphere.cache.headerbroadcastercache</param-value>     </init-param>     <init-param>         <param-name>org.atmosphere.cpr.broadcastfilterclasses</param-name>         <param-value>org.atmosphere.client.trackmessagesizefilter</param-value>     </init-param>     <init-param>         <param-name>org.atmosphere.resumeonbroadcast</param-name>         <param-value>true</param-value>     </init-param>     <load-on-startup>1</load-on-startup>     <async-supported>true</async-supported> </servlet> <servlet-mapping>     <servlet-name>push servlet</servlet-name>     <url-pattern>/primepush/*</url-pattern> </servlet-mapping> 

then i've configured jboss use advanced io

<subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="true"> 

but when deploy application , click on count button these errors

10:31:50,019 info  [org.atmosphere.cpr.atmosphereframework] (msc service thread 1-8) installed     atmosphereinterceptor @pushendpoint interceptor priority after_default  10:31:50,031 info  [org.jboss.web] (msc service thread 1-8) jbas018210: registering web context:      /pushcomment 10:31:51,515 info  [org.atmosphere.cpr.atmosphereframework] (thread-71) latest version of atmosphere's javascript client 2.2.2 10:33:03,976 info  [org.hibernate.validator.util.version] (http-localhost-127.0.0.1-8080-2) hibernate validator 4.2.0.final 10:33:05,594 error [org.atmosphere.container.jbosswebcometsupport] (http-localhost-127.0.0.1-8080-1) httpevent null, jboss apr not installed 10:33:05,595 warn  [org.atmosphere.cpr.atmosphereframework] (http-localhost-127.0.0.1-8080-1) failed using comet support: org.atmosphere.container.jbosswebcometsupport, error: jboss failed detect comet application because apr connector not enabled.  make sure atmosphere-compat-jboss.jar not under web-inf/lib , must use  atmosphere- native-runtime dependency in order use native comet support there no context.xml under web-inf nio or apr connector enabled? 10:33:05,598 error [org.atmosphere.cpr.atmosphereframework] (http-localhost-127.0.0.1-8080-1) if   have more 1 connector enabled, make sure both use same protocol, e.g nio/apr or   http all. if not, org.atmosphere.container.blockingiocometsupport used , cannot   changed. 10:33:05,601 warn  [org.atmosphere.cpr.atmosphereframework] (http-localhost-127.0.0.1-8080-1) using org.atmosphere.container.blockingiocometsupport 10:33:05,603 error [org.atmosphere.cpr.asynchronousprocessor] (http-localhost-127.0.0.1-8080-1) invalid request state. websocket protocol not supported 

can use primepush configuration? if can't, there way push data web page in jboss 7.1.1?

i got running following versions , configuration:

primefaces 5.0, jboss 7.1, atmosphere 2.1.3

web.xml

<servlet>     <servlet-name>primepushservlet</servlet-name>     <servlet-class>org.primefaces.push.pushservlet</servlet-class>     <async-supported>true</async-supported>     <init-param>         <param-name>org.atmosphere.cpr.broadcastercacheclass</param-name>         <param-value>org.atmosphere.cache.uuidbroadcastercache</param-value>     </init-param> </servlet> <servlet-mapping>     <servlet-name>primepushservlet</servlet-name>     <url-pattern>/primepush/*</url-pattern> </servlet-mapping> 

logfile states

08:57:36,055 info  [org.atmosphere.cpr.atmosphereframework] (http--0.0.0.0-8080-2) atmosphere framework 2.1.3 started. 08:57:36,055 info  [org.atmosphere.cpr.atmosphereframework] (http--0.0.0.0-8080-2)  atmosphere framework commercial support, visit  http://www.async-io.org/ or send email support@async-io.org 08:57:36,056 info  [org.atmosphere.cpr.atmosphereframework] (http--0.0.0.0-8080-2) installed atmosphereinterceptor @pushendpoint interceptor priority after_default  08:57:36,057 error [org.atmosphere.container.jbosswebcometsupport] (http--0.0.0.0-8080-2) httpevent null, jboss apr not installed 08:57:36,057 warn  [org.atmosphere.cpr.atmosphereframework] (http--0.0.0.0-8080-2) failed using comet support: org.atmosphere.container.jbosswebcometsupport, error: jboss failed detect comet application because apr connector not enabled.  make sure atmosphere-compat-jboss.jar not under web-inf/lib , must use atmosphere-native-runtime dependency in order use native comet support there no context.xml under web-inf nio or apr connector enabled? 

but works... if manage rid of these messages happy know how :)


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -