Push not working inside GF Virtual Server web app

UI Components for JSF
Post Reply
mauritzl
Posts: 14
Joined: 15 May 2013, 16:14
Location: Norway

12 Feb 2014, 21:34

Scenario:

We have one glassfish instance that is configured to answer to multiple 'virtual hosts', e.g appserver.ourcompany.com, billing.ourcompany.com, crm.ourcompany.com. We do not run Apache in front, since we are not facing any scalability issues and we only run JSF applications that scale well when accessed directly. Each of the virtual servers / hosts answer to different JSF web applications. Many of the web applications use PrimeFaces (and hopefully Push).
We have developed push application locally and everything seems to work fine, until we deploy the web applications to their virtual server targets. Then push stops working, typically emitting errors like this:

[2014-02-12T18:32:51.907+0100] [glassfish 4.0] [WARNING] [] [org.atmosphere.cpr.MetaBroadcaster] No Broadcaster matches /progressmessages. Message {"data":"progress"} WILL BE LOST. Make sure you cache it or make sure the Broadcaster exists before.

Seems to us like this is same issue as many have experienced when using Apache httpd VirtualHost in front of GF / Tomcat / other JEE container.

Have tried many combinations of primefaces.PUSH_SERVER_URL, like 'http://crm.ourcompany.com:8282', but it doesn't seem to help the WebSocket client / server communication to work.

Any ideas?
---------------------------
PrimeFaces 6.0.6
JBoss EAP 7 (Mojarra 2.2.12) | OmniFaces 2.4

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

12 Feb 2014, 23:03

Problem running an application in Glassfish cluster

In that discussion, Aleksandar Nikolov is asking the question, and he (usually) 'always' provides a fix/workaround to make Atmosphere work with his target environment.

I recommend that you follow his contributions in the forum, and try any/everything that he is doing and/or recommending, and 'after' you read any/every discussion that he is participating in, and you are not able to solve your issue, then i recommend that you post a mail on the atmosphere google groups mail list. you may get a response from Jeanfrancois or Aleksandar Nikolov. :)
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

mauritzl
Posts: 14
Joined: 15 May 2013, 16:14
Location: Norway

12 Feb 2014, 23:27

Thank you for responding.

The issue regarding running the web application inside a Glassfish Cluster is somewhat different since it seems to deal with a problematic instance ID appended to the session cookie causing trouble, but I did not get the feeling that Nikolov was running the web applications in GF 'Virtual Server' configurations. Nice to know about the clustering issue anyway, since we might bump into that one later. :)

I will search further and might post to the atmosphere group if I am unable to find a solution.

A temporary workaround is to resort to the polling component (p:poll) to have some kind of progress bar possibility (which is currently what we use push for) ... :roll: .
---------------------------
PrimeFaces 6.0.6
JBoss EAP 7 (Mojarra 2.2.12) | OmniFaces 2.4

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

12 Feb 2014, 23:34

have you searched this forum for PUSH_SERVER_URL ?

i'm about to search for you. one guy, here, posted a question and a workaround related to PUSH_SERVER_URL.
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

13 Feb 2014, 01:12

smithh032772 wrote:have you searched this forum for PUSH_SERVER_URL ?

i'm about to search for you. one guy, here, posted a question and a workaround related to PUSH_SERVER_URL.
primefaces.PUSH_SERVER_URL with different urls

read that from start to finish. please do not reply and say, it is not glassfish in that topic, so it cannot help. i think it may be to help.
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 54 guests