2017-03-30 18:56 GMT+03:00 Addy D <pathfinder2104.w...@gmail.com>: > On Thu, Mar 30, 2017 at 8:49 PM, Konstantin Kolinko <knst.koli...@gmail.com> > wrote: > >> 2017-03-30 12:15 GMT+03:00 Addy D <pathfinder2104.w...@gmail.com>: >> > I can see following in log, while starting tomcat: >> > >> > Mar 30, 2017 2:33:22 PM >> > org.springframework.web.socket.server.support.WebSocketHandlerMapping >> > registerHandler >> > INFO: Mapped URL path [/call] onto handler of type [class >> > org.springframework.web.socket.server.support. >> WebSocketHttpRequestHandler] >> > >> > Same kind of logs are also available when I run my Spring boot >> application, >> > in this app I am able to connect to wss://localhost:8443/call. >> >> 1. Rules: >> http://tomcat.apache.org/lists.html#tomcat-users >> -> 6. Top-posting is bad. >> >> 2. What is the name of your web application? Is it "ROOT"? >> FAQ: >> https://wiki.apache.org/tomcat/HowTo#How_do_I_make_my_ >> web_application_be_the_Tomcat_default_application.3F >> > > Sorry for top-posting. > No my application is not "ROOT", i have my application as "myapp" but I > have a similar (almost same, I am moving spring boot app to tomcat) > spring-boot application which works fine with embedded tomcat in it with > the same url, in fact in application startup time, I see "/call" getting > registered in the tomcat log. as shown below.
You wrote earlier that you tried the following URL: > The exact url I am trying to hit is : wss://localhost:8443/call If you application is named "myapp" then you must use the following URL: wss://localhost:8443/myapp/call > Mar 30, 2017 2:33:22 PM > org.springframework.web.socket.server.support.WebSocketHandlerMapping > registerHandler > INFO: Mapped URL path [/call] onto handler of type [class > org.springframework.web.socket.server.support.WebSocketHttpRequestHandler] That is not an absolute path. That is a path relative to your web application (relative to "context root" as the Servlet specification says). http://docs.oracle.com/javaee/7/api/javax/servlet/ServletContext.html#getContextPath-- > D:\Servers\tomcat-8.5.9\ Current is 8.5.12, with 8.5.13 expected in a few days (tomorrow?). Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org