Tomcat 8/Ubuntu 12.04
I have my tomcat deployed with the example echo application. I wrote a
tester that hits the URL provided and sends a message and then receives
the response back.
I want to deploy my own websocket. I have done so using the
@ServerEndpoint(value = "/websocket") annotation. When i try to hit this
from my client, I get a http 404 status.
I looked at the examples again and found that there was this
ExamplesConfig.java. Aha! I thought, a magic class that makes this
configuration work. I implemented my own and it does not change the
results. It does not appear to be calling my config at all because I
have System.out.println()s in my config and they are not showing up in
the log.
I have been through the examples web.xml and cannot find any
configuration for websockets at all except the listener definition for
the old school version of web sockets. (I'm assuming this predated JSR-356.)
So how do i configure tomcat so it knows about my websocket?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org