Re: Websocket & Logging

2017-03-29 Thread Addy D
Well, I haven't change the code, the thing was working with Spring boot (embedded tomcat) I just moved the code/app to an actual tomcat server. By trying the link from websocket.org I just wanted to confirm that nothing is wrong with my Java Script code or browser. I now come to a conclusion that

Ways to identify poorly designed client aplications sending request to Tomcat !

2017-03-29 Thread Utkarsh Dave
Hello all, My tomcat (7.0.72) hosts several web aplications in the server (based in linux 6.8). There are many clients or 3rd party applications working as client to my server (having tomcat and web applications). There are instances when poorly designed client application can affect severly to To

Re: need help with websocket

2017-03-29 Thread Robert Lewis
WSS will work if you enable and configure the HTTPS connector in server.xml. This part of the configuration is not really wss specific and tomcat site contains a bunch of good docs on how to do this. > On Mar 29, 2017, at 4:40 PM, Sharat Jagannath wrote: > > The code on the tomcat page does no

Re: need help with websocket

2017-03-29 Thread Sharat Jagannath
The code on the tomcat page does not have examples for wss. But I will look into his ngnix is configured Thanks On Mar 29, 2017 1:15 PM, "Mark Eggers" wrote: > Sharat, > > On 3/29/2017 9:23 AM, Sharat Jagannath wrote: > > I get a 404 error when I call my server endpoint with wss. > > I'm using

Re: need help with websocket

2017-03-29 Thread Mark Eggers
Sharat, On 3/29/2017 9:23 AM, Sharat Jagannath wrote: > I get a 404 error when I call my server endpoint with wss. > I'm using tomcat 9 which sits behind ngnix. Does that make a difference? > here's how my server.xml looks like- > > > > > > > > > >SSLEngine="on" /> > >cla

Re: Websocket & Logging

2017-03-29 Thread Igal @ Lucee.org
That means that the Endpoint at websocket.org is configured correctly. How doe that help troubleshooting your Endpoint? Igal Sapir Lucee Core Developer Lucee.org On 3/29/2017 12:10 PM, Addy D wrote: No, I tried something different, I tried this url wss://echo.websocket.org,

Re: Websocket & Logging

2017-03-29 Thread Addy D
No, I tried something different, I tried this url wss://echo.websocket.org, this one is working. On Wed, Mar 29, 2017 at 11:49 PM, Igal @ Lucee.org wrote: > Can you access it in a non-secure protocol? i.e. ws:// instaed of wss://? > > Testing that can help eliminate possible issues. > > Igal Sa

Re: Websocket & Logging

2017-03-29 Thread Igal @ Lucee.org
Can you access it in a non-secure protocol? i.e. ws:// instaed of wss://? Testing that can help eliminate possible issues. Igal Sapir Lucee Core Developer Lucee.org On 3/29/2017 11:17 AM, Addy D wrote: The exact url I am trying to hit is : wss://localhost:8443/call On We

Re: Websocket & Logging

2017-03-29 Thread Addy D
The exact url I am trying to hit is : wss://localhost:8443/call On Wed, Mar 29, 2017 at 10:58 PM, Igal @ Lucee.org wrote: > On 3/29/2017 2:17 AM, Addy D wrote: > >> Hello all, >> >> I am facing an issue in my application, I want to know following things. >> >> 1. The tomcat is returning 404 for

Re: Websocket & Logging

2017-03-29 Thread Igal @ Lucee.org
On 3/29/2017 2:17 AM, Addy D wrote: Hello all, I am facing an issue in my application, I want to know following things. 1. The tomcat is returning 404 for upgrade header (request to upgrade to websocket protocol). Do I need to configure anything here? What's the Endpoint that you've set up (an

Re: need help with websocket

2017-03-29 Thread Sharat Jagannath
I get a 404 error when I call my server endpoint with wss. I'm using tomcat 9 which sits behind ngnix. Does that make a difference? here's how my server.xml looks like-

Re: need help with websocket

2017-03-29 Thread calder
On Tuesday, March 28, 2017, Sharat Jagannath wrote: > how do i setup websocket on server side for using wss with tomcat config? > is there any config i need to do with tomcat? any certification to setup? > Read up using the How-to: https://tomcat.apache.org/tomcat-8.0-doc/web-socket-howto.htm

Re: Websocket & Logging

2017-03-29 Thread Addy D
Details from firefox "Network" tab: Request URL: https://localhost:8443/call Request Method: GET Status Code: 404 Request Headers: Host: localhost:8443 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0 Accept: text/html,application/xhtml+xml,appl

Re: Websocket & Logging

2017-03-29 Thread Addy D
Hey Mark, Thanks for replying, details are: 1. I am finding following things in the "Network" tab in chrome. a. General: Request URL:wss://localhost:8443/call Request Method:GET Status Code:404 b. Response Header: HTTP/1.1 404 Content-Type: text/html;charset=utf-8

Re: Websocket & Logging

2017-03-29 Thread Mark Thomas
On 29/03/17 10:17, Addy D wrote: > Hello all, > > I am facing an issue in my application, I want to know following things. > > 1. The tomcat is returning 404 for upgrade header (request to upgrade to > websocket protocol). Do I need to configure anything here? It certainly looks like it. What UR

Websocket & Logging

2017-03-29 Thread Addy D
Hello all, I am facing an issue in my application, I want to know following things. 1. The tomcat is returning 404 for upgrade header (request to upgrade to websocket protocol). Do I need to configure anything here? 2. How to enable logging for particular package of tomcat ? (I tried changing lo