On Apr 18, 2014, at 12:28 PM, Thom Hehl <th...@corrisoft.com> wrote: > I have downloaded the websocket example echo in the examples section of the > tomcat 8 docs. I downloaded both java classes and the xhtml file and have > placed all of these in my eclipse project. I then created a basic web.xml > which is: > > <?xml version="1.0" encoding="UTF-8"?> > <web-app xmlns="http://java.sun.com/xml/ns/javaee" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" > version="3.0"> > <welcome-file-list> > <welcome-file>echo.xhtml</welcome-file> > </welcome-file-list> > </web-app> > > I build all of this into a war with my libraries. I've stripped out the > javax.websocket libraries by hand from the jar file just to get the test > working. > > I place this in tomcat, start it, and go to: > http://localhost:8080/examples/echo.xhtml. When I choose either API and click > connect, it immediately responds with: Info: WebSocket connection closed, > Code: 1006. > > Since I'm just running an example, I can't see where I've erred.
This seems like way too much effort. To run the samples you only need to do this. 1.) Download Tomcat 8: https://tomcat.apache.org/download-80.cgi 2.) Extract the files. 3.) Start the Tomcat instance. 4.) Go to http://<server>/examples. From there click the link for WebSocket examples. It’s not necessary to download and package them yourself. Dan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org