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

      <TITLE>Weblogic Bridge Message</TITLE>
      <H2>Failure of Web Server bridge:</H2>
      <PRE>Internal Server Failure. Cannot Continue.</PRE>

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/

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


    ServerName myhost
    Redirect permanent / https://myhost/



    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
    SSLProxyEngine on
        SSLProxyVerify none 
        SSLProxyCheckPeerCN off
        SSLProxyCheckPeerName off
        SSLProxyCheckPeerExpire off
    SSLCertificateFile    "/etc/pki/tls/certs/myhost.cer"
    SSLCertificateKeyFile "/etc/pki/tls/private/myhost.key"


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" 
           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>
    ProxyPass /roomky ajp://
    ProxyPassReverse /roomky ajp://
    ProxyRequests On
    ProxyVia On

    <Proxy *>
        Order deny,allow
        Allow from all

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 ( 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