NGClient War Deployment Issues

Forum to discuss the new web client version of Servoy.

NGClient War Deployment Issues

Postby sbutler » Mon Apr 25, 2016 4:22 am

After WAR deployment, going to http://<host>/<context>/servoy-admin works fine. I'm able to view the Servoy admin as normal. When I try to go to a solution in the NG client via: http://<host>/<context>/solutions/<solutionName>/index.html the page shows "Disconnected from server, Reconnecting....". When I inspect the console, I can see this error:
Code: Select all
WebSocket connection to 'ws://<host>/<context>/websocket/null/null/null?solution=<solutionName>' failed: Error during WebSocket handshake: Unexpected response code: 404


The browser just sits there and is not able to connect. Notice the null values in the above error. I'm also using a very current version of Tomcat.

Using a setup on AWS with:
CentOS 7
Java 8u91
Apache Tomcat 7.0.54
Servoy 8.0.3

Support Case: SVY-9761
Scott Butler
iTech Professionals, Inc.
SAN Partner

Servoy Consulting & Development
Servoy University- Training Videos
Servoy Components- Plugins, Beans, and Web Components
Servoy Guy- Tips & Resources
ServoyForge- Open Source Components
User avatar
sbutler
Servoy Expert
 
Posts: 759
Joined: Sun Jan 08, 2006 7:15 am
Location: Cincinnati, OH

Re: NGClient War Deployment Issues

Postby jcompagner » Mon Apr 25, 2016 5:05 pm

i tries this on the latest tomcat 7.x and for me this works fine the war deployes fine and the client can be started up.

somehow the websocket doesn't come up of the endpoint is not registered maybe that is a problem in that version of tomcat somehow.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: NGClient War Deployment Issues

Postby jcompagner » Mon Apr 25, 2016 5:10 pm

are you really talking directly to the tomcat server?
Or is there a proxy in between or apache (httpd) in front of this?
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: NGClient War Deployment Issues

Postby sbutler » Mon Apr 25, 2016 7:04 pm

Its on AWS and there is a load balancer in front of Tomcat.
Scott Butler
iTech Professionals, Inc.
SAN Partner

Servoy Consulting & Development
Servoy University- Training Videos
Servoy Components- Plugins, Beans, and Web Components
Servoy Guy- Tips & Resources
ServoyForge- Open Source Components
User avatar
sbutler
Servoy Expert
 
Posts: 759
Joined: Sun Jan 08, 2006 7:15 am
Location: Cincinnati, OH

Re: NGClient War Deployment Issues

Postby ROCLASI » Mon Apr 25, 2016 7:27 pm

Hi Scott,

Be aware that the AJP protocol doesn't support WebSockets. Johan already looked into this issue at ServoyCamp.
If you want to use Apache HTTPD as a load balancer in front of Tomcat you have to make sure you use mod_proxy and/or mod_proxy_wstunnel.

Hope this helps.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: NGClient War Deployment Issues

Postby sbutler » Mon Apr 25, 2016 8:47 pm

Thanks. I'm just using the built-in Load Balancer for AWS, and I'm not 100% sure what that uses under-the-hood. I'll try and not use the load balancer and see how it goes.
Scott Butler
iTech Professionals, Inc.
SAN Partner

Servoy Consulting & Development
Servoy University- Training Videos
Servoy Components- Plugins, Beans, and Web Components
Servoy Guy- Tips & Resources
ServoyForge- Open Source Components
User avatar
sbutler
Servoy Expert
 
Posts: 759
Joined: Sun Jan 08, 2006 7:15 am
Location: Cincinnati, OH

Re: NGClient War Deployment Issues

Postby robrecht » Tue Dec 03, 2019 9:23 pm

Hi,

Did you find a solution for this?
I'm facing the exact same issue; apparently the Elastic Beanstalk setup with load balancer I am configuring doesn't support websockets.
It would save me a lot of time I guess..

Thanks!
Robrecht
robrecht
 
Posts: 99
Joined: Wed Aug 01, 2012 4:30 pm

Re: NGClient War Deployment Issues

Postby robrecht » Tue Dec 03, 2019 9:30 pm

Hi,

Did you find a solution for this?
I'm facing the exact same issue; apparently the Elastic Beanstalk setup with load balancer I am configuring doesn't support websockets.
It would save me a lot of time I guess..

Thanks!
Robrecht
robrecht
 
Posts: 99
Joined: Wed Aug 01, 2012 4:30 pm

Re: NGClient War Deployment Issues

Postby sbutler » Tue Dec 03, 2019 9:54 pm

We switched over to doing everything in Docker / Amazon Elastic Container Services. So we use nginx instead of the default AWS Elastic Load Balancer, which gave us some more control over customization.
Scott Butler
iTech Professionals, Inc.
SAN Partner

Servoy Consulting & Development
Servoy University- Training Videos
Servoy Components- Plugins, Beans, and Web Components
Servoy Guy- Tips & Resources
ServoyForge- Open Source Components
User avatar
sbutler
Servoy Expert
 
Posts: 759
Joined: Sun Jan 08, 2006 7:15 am
Location: Cincinnati, OH

Re: NGClient War Deployment Issues

Postby robrecht » Tue Dec 03, 2019 10:01 pm

Thanks

Switching the load balancer to nginx on elastic beanstalk does the trick for now. I want to avoid switching to ECS and losing some of the advantages of EBS..
robrecht
 
Posts: 99
Joined: Wed Aug 01, 2012 4:30 pm


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 4 guests