[jboss-jira] [JBoss JIRA] (WFLY-3725) Unable to deploy dynamic, programmatic JSR-356 Endpoints
Jim Crossley (JIRA)
issues at jboss.org
Sun Aug 10 15:48:29 EDT 2014
Jim Crossley created WFLY-3725:
----------------------------------
Summary: Unable to deploy dynamic, programmatic JSR-356 Endpoints
Key: WFLY-3725
URL: https://issues.jboss.org/browse/WFLY-3725
Project: WildFly
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Web (Undertow)
Affects Versions: 8.1.0.Final
Reporter: Jim Crossley
Assignee: Stuart Douglas
I'm following the example here: https://github.com/undertow-io/undertow/blob/ceb019c91bd5ff5f219093298be93452770c3a70/websockets-jsr/src/test/java/io/undertow/websockets/jsr/test/AddEndpointServlet.java#L39
I'm dynamically creating a Servlet instance and deploying it using the the ServletContext's addServlet method. The servlet init's method is similar to the above test case, obtaining a ServerContainer and calling its addEndpoint method with a ServerEndpointConfig$Configurator.
Everything works fine in standalone Undertow 1.0.15.Final, but in WildFly 8.1, I see the following:
[io.undertow.websockets.jsr] (MSC service thread 1-1) UT026005: Adding programmatic server endpoint class immutant.web.internal.servlet.proxy$javax.websocket.Endpoint$ff19274a for path /
And then my configurator never gets called when I attempt to connect. It's as if the upgrade is never attempted, i.e. like the request protocol is 'http://' instead of 'ws://' but I know it's 'ws://' because the same client works fine against Undertow standalone.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
More information about the jboss-jira
mailing list