#1580 - GlassFishWebSocketHandler.isApplicationRequest() returns false if the request doesn't start with the servlet contextpath. However, if the webapp is set as the default-web-module, then the request will not start with the contextpath since GlassFish strips that from the request.
To fix, we just need to ensure that the contextpath is removed from the start of the request path, instead of requiring it to be so.