2

We've recently configured a new Cluster with the following configuration:

   www.mydomain.com
           |        
    APACHE + MOD_JK (AJP)
     Load Balancer
      /           \
  Tomcat1      Tomcat2

All the requests are made through HTTPS and the two tomcat instances are using SessionReplication via DeltaManager.

The cluster and all the wep-apps are working just fine.

Now one of these webapps requires the use of WebSockets with WSS:// protocol and i'm getting this exception

java.lang.UnsupportedOperationException: HTTP upgrade is not supported by this protocol

Has anyone ever a clue on what is causing this ?

2 Answers2

3

As discussed on the tomcat-users mailing list: "[...] the AJP protocol does not support upgrading to other protocols (e.g. websocket, HTTP/2)."

This means you'd have to use some other method of proxying these connections to your Tomcat instances. As Tux_DEV_NULL mentioned you could use mod_proxy_wstunnel for this.

vdstw
  • 86
1

You need to install mod_proxy_wstunnel apache module.

Tux_DEV_NULL
  • 1,123