Category Archives: atmosphere

Atmosphere failure with "Failure of Web Server bridge"

Atmosphere requests to /push started getting the following response after some time(1min):

Session time out

 <HTML>
   <HEAD>
      <TITLE>Weblogic Bridge Message</TITLE>
   </HEAD>
   <BODY>
      <H2>Failure of Web Server bridge:</H2>
      <P>
      <hr>
      <PRE>Internal Server Failure. Cannot Continue.</PRE>
      <hr>
   </BODY>
</HTML>

We are using:

atmosphere version=2.2.1
atmosphere client javascript version=2.2.6
atmosphere runtime version=2.2.4
weblogic version=12.1.1

Apache server

Configure secured websockets using Apache httpd 2.4.6 and Tomcat 8

I'm trying to configure websockets using httpd proxy and reverse proxy but it doesn't seem to work. If I use directly the tomcat server everything is fine, if I call it through apache httpd, the response status is 200. This means apache httpd cannot interpret the websocket request and switch the protocol, right?

This is my httpd config for my app:

LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so

Listen 443 https


SSLPassPhraseDialog exec:/usr/libexec/httpd-ssl-pass-dialog

SSLSessionCache         shmcb:/run/httpd/sslcache(512000)
SSLSessionCacheTimeout  300

SSLRandomSeed startup file:/dev/urandom  256
SSLRandomSeed connect builtin

SSLCryptoDevice builtin


<VirtualHost 10.224.130.50:80>

    ServerName myhost
    Redirect permanent / https://myhost/

</VirtualHost>

<VirtualHost 10.224.130.50:443>

    ServerName myhost
    ErrorLog logs/myhost.error.log
    CustomLog logs/myhost.access.log common

    ProxyPass /ws/       wss://localhost:8443/ws/ retry=0
    ProxyPassReverse /ws/ wss://localhost:8443/ws/ retry=0

    ProxyPass / https://myhost:8443/ connectiontimeout=600 timeout=1200
    ProxyPassReverse / https://myhost:8443/


    SSLEngine on
    SSLProtocol all -SSLv2 -SSLv3
    SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
    SSLProxyEngine on
        SSLProxyVerify none 
        SSLProxyCheckPeerCN off
        SSLProxyCheckPeerName off
        SSLProxyCheckPeerExpire off
    SSLCertificateFile    "/etc/pki/tls/certs/myhost.cer"
    SSLCertificateKeyFile "/etc/pki/tls/private/myhost.key"

</VirtualHost>

And this is the Connector config for Apache Tomcat:

<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" 
           keystoreFile="/root/.keystore"
           keystorePass="password" />

Atmosphere 2.1.2 + apache 2.4.6 with mod_proxy_ajp cannot forward request to Tomcat 7

I have Apache 2.4 with mod_proxy_ajp to forward REST requests to Tomcat 7. Everything works fine except that I am using Atmosphere 2.1.2 and the Atmosphere calls do not make it to Tomcat. I know that there are alternatives to Apache for working with websockets (Nginx and HAProxy etc) but I was wondering if there is a way to make it work with Apache? Here is my VirtualHost definition in httpd.conf

<VirtualHost *:80>
    ServerName 192.168.0.100
    ProxyPass /roomky ajp://192.168.0.100:8009/roomky
    ProxyPassReverse /roomky ajp://192.168.0.100:8009/roomky/
    ProxyRequests On
    ProxyVia On

    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>
</VirtualHost>

Any suggestions?

Apache httpd2.4.6 enabling web socket giving 501 (Not Implemented) error

We are using atmosphere and recently upgraded apache to 2.4.6 to support web socket. We have mod_proxy_wstunnel module loaded and have following configuration in apache. We are using tomcat as a web server.

ProxyRequests On
ProxyVia On

ProxyPass /al/atmosphere/ ws://localhost:8080/al/atmosphere/
ProxyPassReverse /al/atmosphere/ ws://localhost:8080/al/atmosphere/
ProxyPass /al/ http://localhost:8080/al/
ProxyPassReverse /al/ http://localhost:8080/al/

When we try to access atmosphere url (https://mydomain.com/al/atmosphere/auditUpdate?X-Atmosphere-tracking-id=...) thru https I get 501 Not implemented error.

However if I try to connect on wss:// it works fine.

Please help how I can resolve this issue.

Thank You, Resh