You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2014/04/07 12:39:50 UTC
[Bug 56356] New: Websocket doesn't work under ROOT
https://issues.apache.org/bugzilla/show_bug.cgi?id=56356
Bug ID: 56356
Summary: Websocket doesn't work under ROOT
Product: Tomcat 8
Version: 8.0.5
Hardware: HP
Status: NEW
Severity: normal
Priority: P2
Component: WebSocket
Assignee: dev@tomcat.apache.org
Reporter: mnabil.net@gmail.com
Websocket doesn't work under default ROOT application but works fine under any
other web application
for Example when connect using HTML5 => var webSocket = new WebSocket(target);
-
ROOT/websocket/echoProgrammatic => doesn't connect
target = ws://localhost:8080/websocket/echoProgrammatic
-
sonya/websocket/echoProgrammatic => works correctly
target = ws://localhost:8080/sonya/websocket/echoProgrammatic
- guessing:
classes implements ServerApplicationConfig interface are not scanned under ROOT
directory but scanned on other application directories
Mohammad Nabil
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 56356] Websocket doesn't work under ROOT
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56356
--- Comment #2 from Mohammad Nabil <mn...@gmail.com> ---
I've discovered that removing websocket-api.jar that is included in
ROOT\WEB-INF\lib solved the problem and websocket connects
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 56356] Websocket doesn't work under ROOT
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56356
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
OS| |All
--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Removed ROOT. Renamed examples to ROOT. Tested the echo example in programmatic
mode and in annotation mode. Both work.
Note that the WebSocket examples hard code the context path to /examples in a
number of cases. That could be improved but is a separate issue.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org