{"action":"opened","issue":{"url":"https://api.github.com/repos/Atmosphere/atmosphere/issues/1933","labels_url":"https://api.github.com/repos/Atmosphere/atmosphere/issues/1933/labels{/name}","comments_url":"https://api.github.com/repos/Atmosphere/atmosphere/issues/1933/comments","events_url":"https://api.github.com/repos/Atmosphere/atmosphere/issues/1933/events","html_url":"https://github.com/Atmosphere/atmosphere/issues/1933","id":65771951,"number":1933,"title":"Glassfish 4 websocket support is broken if using multiple endpoints","user":{"login":"Artur-","id":260340,"avatar_url":"https://avatars.githubusercontent.com/u/260340?v=3","gravatar_id":"","url":"https://api.github.com/users/Artur-","html_url":"https://github.com/Artur-","followers_url":"https://api.github.com/users/Artur-/followers","following_url":"https://api.github.com/users/Artur-/following{/other_user}","gists_url":"https://api.github.com/users/Artur-/gists{/gist_id}","starred_url":"https://api.github.com/users/Artur-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Artur-/subscriptions","organizations_url":"https://api.github.com/users/Artur-/orgs","repos_url":"https://api.github.com/users/Artur-/repos","events_url":"https://api.github.com/users/Artur-/events{/privacy}","received_events_url":"https://api.github.com/users/Artur-/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-01T20:25:14Z","updated_at":"2015-04-01T20:25:14Z","closed_at":null,"body":"If you have multiple endpoints inside the same web app (war), the requests might go to the wrong endpoint - depending on in which order they were initialized.\r\n\r\nThe problem seems to be in Grizzly2WebSocketApplication.isApplicationRequest, which only compares the context path.\r\n\r\n\"Jeanfrancois wrote: Most probably I need to port this https://github.com/Atmosphere/atmosphere/blob/master/modules/cpr/src/main/java/org/atmosphere/container/GlassFishWebSocketHandler.java#L58\r\n\r\nThis does not seem to be a problem with JSR-356 "}}