WebSocket can't find Ws://localhost:8080/websocket/message__web

Source: Internet
Author: User

Recently in the websocket of a timely message communication, and then go online to download the example of others.

Environment: 1.7jdk+,tomcat7+

The main imported two packages for Tomcat: Catalina.jar, Tomcat-coyote.jar

And then put the demo into the project to go, pop-up box is unable to connect, the beginning did not notice, finally thought, is websocket sent the request not to the background. The path of others is ws://localhost:8080/websocket/message, but my own path is ws://localhost:8080/message. Okay, just get rid of it.

PS: Recently is not too good, to such a simple question, through the results should be able to find out the reason, calm, maintain the mentality can be better and faster to solve the problem

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.