About the HTML5 request WebSocket, 404 problems

Recommended for you: Get network issues from WhatsUp Gold. Not end users.
Recently pushed to the page to write server-side content

The first is dependent on Environmental
WebSocket HTML5 only supports
Java EE 7 and later to support
Tomcat7 later support
The service container that others should have the corresponding support package

Specific how to request and receive not recorded, the main problem seems to be 404

Oracle's own WebSocket packets in the latest version of release is WebSocket-api1.0
The Maven configuration is as follows
http://mvnrepository.com/artifact/javax.websocket/javax.websocket-api/1.0
<dependency>
	<groupId>javax.websocket</groupId>
	<artifactId>javax.websocket-api</artifactId>
	<version>1.0</version>
</dependency>


Attention is (404.) rely on to introduce Tomcat7 Run Time bag, do not use WebSocket-api.jar
Tomcat7 Tomat7-WebSocket.jar and the WebSocket-api.jar package, which implements the WebSocket-api.jar based content, on the basis of this packet is modified.
So in the Tomcat runtime environment Katerina inside, if used, Maven deployment, there will be Jar packet collision

While in the process of development, rely on to introduce Tomcat7 Run Time bag, do not use WebSocket-api.jar

This is the Tomcat7 on the WebSocket documentation, the future use of WebSocket-api.jar, Tomcat in Tomcat version 8 out of their own internal bag, can directly use the Oracle.
http://tomcat.apache.org/tomcat-7.0-doc/web-socket-howto.html

The other 404, the path error that may be the code inside the access to can not find.
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Duke at December 08, 2013 - 5:06 PM