<a4j:push /> works on Tomcat 7, but not Weblogic 12c
vace117 Jun 11, 2014 12:39 AMGreetings,
I've been trying to figure out why this does not work, and I am out of ideas, so I could use some help.
Page.xhtml:
<a4j:push address="systemLinks" > <a4j:ajax event="dataavailable" render="systemLinksPanel" /> </a4j:push> <a4j:outputPanel id="systemLinksPanel"> stuff here </a4j:outputPanel>
Startup log:
INFO: Installed AtmosphereHandler org.atmosphere.handler.ReflectorServletProcessor mapped to context-path: /*
INFO: Atmosphere is using async support: org.atmosphere.container.Servlet30CometSupport running under container:
WebLogic Server 12.1.2.0.0 Fri Jun 7 15:16:15 PDT 2013 1530982 WLS_12.1.2.0.0_GENERIC_130607.1100
Oracle WebLogic Server Module Dependencies 12.1 Tue May 21 06:02:40 PDT 2013 using javax.servlet/3.0
INFO: Installing Filter PushHandlerFilter
INFO: Using broadcaster class: org.atmosphere.cpr.DefaultBroadcaster
Java code:
TopicKey topicKey = new TopicKey("systemLinks"); TopicsContext topicsContext = TopicsContext.lookup(); topicsContext.publish(topicKey, "fly, you fools!");
On Tomcat 7 this work perfectly, and always refreshes 'systemLinksPanel' when data is published.
On Weblogic 12c, I am pretty sure the response is sent, but it is never received by the client 'XMLHttpRequest'. What I mean by that is that
ajaxRequest.readyState == 4
But
ajaxRequest.responseText == ""
So no events are triggered. I have examined the exchange with a network protocol analyzer, and I do see the response:
003b
<"topic":"systemLinks","data":"fly, you fools!","number":0>
Now I don't know where else to look. The data leaves the server, but does not arrive at the destination. What else can I check?
The only difference I see in the response from Tomcat is that the two leading zeros are not there. So '3b' instead of '003b'.
Library Versions:
richfaces-components-api-4.2.0.Final.jar
richfaces-components-ui-4.2.0.Final.jar
richfaces-core-api-4.2.0.Final.jar
richfaces-core-impl-4.2.0.Final.jar
javax.faces-2.1.7.jar
atmosphere-compat-jbossweb-0.8.4.jar
atmosphere-compat-jetty-0.8.4.jar
atmosphere-compat-tomcat-0.8.4.jar
atmosphere-compat-tomcat7-0.8.4.jar
atmosphere-compat-weblogic-0.8.4.jar
atmosphere-runtime-0.8.4.jar