Showcase 5.1 push doesn't work on Wildfly 8.1.0

UI Components for JSF
Post Reply
rightcab
Posts: 7
Joined: 22 Jun 2012, 01:01

03 Jan 2015, 23:29

For example in the PFPush Counter example, clicking the button doesn't update the on screen counter, unless you refresh the page. Looks to me that the button updates the server state but no push is received at the browser. Using Chrome 39.0.2171.71 and IE11.0.9600 (which work fine against http://www.primefaces.org/showcase/push/counter.xhtml)

From other posts I tried removing the jsf jar from project (to use wildfly instead) and downgrading to atmosphere 2.1.7. No change.

I'm using showcase to debug a problem I have with my own application which also doesn't work in this environment. Everything else is as per showcase 5.1 download from http://repository.primefaces.org/org/pr ... se-5.1.war

Is there a deployment recommendation for Wildfly?

Many thanks

EDIT - I am getting these Javascript errors when opening (first GET on) http://localhost/showcase-5.1/push/counter.xhtml

I'm not sure if this is relevant but the application is being run on port 80, not 8080.

Code: Select all

push.js.xhtml?ln=primefaces&v=5.1:1 WebSocket connection to 'ws://127.0.0.1:8080/showcase-5.1/primepush/counter?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=2.2.4-javascript&X-Atmosphere-Transport=websocket&X-Atmosphere-TrackMessageSize=true&X-atmo-protocol=true' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
push.js.xhtml?ln=primefaces&v=5.1:1 Websocket failed. Downgrading to Comet and resending

push.js.xhtml?ln=primefaces&v=5.1:1 GET http://127.0.0.1:8080/showcase-5.1/primepush/counter?X-Atmosphere-tracking-ng&X-Atmosphere-TrackMessageSize=true&X-atmo-protocol=true&_=1420330742766 net::ERR_CONNECTION_REFUSED
push.js.xhtml?ln=primefaces&v=5.1:1 GET http://127.0.0.1:8080/showcase-5.1/primepush/counter?X-Atmosphere-tracking-ng&X-Atmosphere-TrackMessageSize=true&X-atmo-protocol=true&_=1420330743768 net::ERR_CONNECTION_REFUSED
push.js.xhtml?ln=primefaces&v=5.1:1 GET http://127.0.0.1:8080/showcase-5.1/primepush/counter?X-Atmosphere-tracking-ng&X-Atmosphere-TrackMessageSize=true&X-atmo-protocol=true&_=1420330744018 net::ERR_CONNECTION_REFUSED
push.js.xhtml?ln=primefaces&v=5.1:1 GET http://127.0.0.1:8080/showcase-5.1/primepush/counter?X-Atmosphere-tracking-ng&X-Atmosphere-TrackMessageSize=true&X-atmo-protocol=true&_=1420330744770 net::ERR_CONNECTION_REFUSED
push.js.xhtml?ln=primefaces&v=5.1:1 GET http://127.0.0.1:8080/showcase-5.1/primepush/counter?X-Atmosphere-tracking-ng&X-Atmosphere-TrackMessageSize=true&X-atmo-protocol=true&_=1420330745018 net::ERR_CONNECTION_REFUSED
push.js.xhtml?ln=primefaces&v=5.1:1 GET http://127.0.0.1:8080/showcase-5.1/primepush/counter?X-Atmosphere-tracking-ng&X-Atmosphere-TrackMessageSize=true&X-atmo-protocol=true&_=1420330745779 net::ERR_CONNECTION_REFUSED

rightcab
Posts: 7
Joined: 22 Jun 2012, 01:01

04 Jan 2015, 14:03

Ok I found the problem.

There's a hard-coded reference to port 8080 in the showcase web.xml

Code: Select all

<context-param>
     <param-name>primefaces.PUSH_SERVER_URL</param-name>
     <param-value>http://127.0.0.1:8080</param-value>
</context-param>
Need to change to the port you're running your server HTTP listener on, in my case 80.

john012
Posts: 1
Joined: 01 Dec 2016, 15:19

01 Dec 2016, 15:22

i search on this topic and got the fix as you can see
http://www.deskdecode.com/err_connection_refused/
but the thing is I cant able to reapir my computer with that fix and it my my internet connection dumbed
so now i cant able to use my internet
does anybody know where i did wrong

techinpost
Posts: 1
Joined: 09 May 2017, 10:40

09 May 2017, 10:42

I found a webpage from which i get rid out of this type of error issue, now you can also check this once for

getting rid of it completely from here: http://www.techinpost.com/fix-error-err ... de-problem

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 25 guests