NG Client not deploying on Tomcat 9 - Servoy 2021.12

Discuss all problems you have with Servoy here. It might help to mention the Servoy version and Operating System version you are using

NG Client not deploying on Tomcat 9 - Servoy 2021.12

Postby swingman » Tue Jun 28, 2022 4:15 pm

Hi, when I try starting a NG-client we get a blank screen and the following errors in the console:

Screenshot 2022-06-28 at 14.46.46.png
Errors in console
Screenshot 2022-06-28 at 14.46.46.png (257.46 KiB) Viewed 3788 times
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Re: NG Client not deploying on Tomcat 9 - Servoy 2021.12

Postby jcompagner » Tue Jun 28, 2022 4:29 pm

do you have custom components?
mostly this means something is not package correctly, and a certain module (component package) is in a bad state and can't be loaded
i see for example a lot of 404 what resources are that if you look in the dev tools network?
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: NG Client not deploying on Tomcat 9 - Servoy 2021.12

Postby swingman » Tue Jun 28, 2022 5:15 pm

Screenshot 2022-06-28 at 14.46.13.png
Screenshot 2022-06-28 at 14.46.13.png (275.17 KiB) Viewed 3775 times


Network looked fine.

I got rid of

svyUtils$documentEditor
svyUtils$NGClient

modules and now it loads normally. Maybe I had old, or incompatible versions?
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Re: NG Client not deploying on Tomcat 9 - Servoy 2021.12

Postby swingman » Tue Jun 28, 2022 5:20 pm

We first experienced this issue when trying to deploy a solution containing the Office365 package to run Servoy in a panel in Outlook. The example above did not have that package. We want to run Servoy inside Outlook and independently at the same time. We are having problem generating a .war that will deploy. It all works fine in Developer.
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Re: NG Client not deploying on Tomcat 9 - Servoy 2021.12

Postby jcompagner » Thu Jun 30, 2022 2:02 pm

what do you mean you run servoy inside outlook?
really in an iframe?

then it could be a security block look at the admin page setting "servoy.ngclient.contentSecurityPolicy.frame-ancestors"

https://developer.mozilla.org/en-US/doc ... -ancestors

Or does it also not work when running normally from a server directly in your browser?
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: NG Client not deploying on Tomcat 9 - Servoy 2021.12

Postby mboegem » Thu Jun 30, 2022 2:36 pm

Hi Johan,

I suppose Christian means that including the Office JavaScript API service from SPM breaks this deployment.
I've heard a similar issue from other people, using this service
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1749
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: NG Client not deploying on Tomcat 9 - Servoy 2021.12

Postby omar » Thu Jun 30, 2022 3:11 pm

I had an issue earlier this week which also prevented me from deploying a war file, Tomcat became unresponsive. It was caused by commons-logging-1.1.jar in the beans folder which I added along with some XMLRPC libraries to be able to connect with Odoo. I guess Servoy ships that jar now as well so removing it from the beans folder was the solution for me. And otherwise remove half or all of your plugins and beans until it deploys again and then add them again till you find the culprit.
Intrasoft, Founder
Omar van Galen
omar@intrasoft.nl
+31-(0)6-21234586
Servoy Developer
omar
 
Posts: 377
Joined: Sat Feb 12, 2011 4:51 pm
Location: Intrasoft, The Netherlands

Re: NG Client not deploying on Tomcat 9 - Servoy 2021.12

Postby jcompagner » Thu Jun 30, 2022 3:21 pm

in 2022.03 we already test for this and don't allow duplicate jars

in 09 the whole plugins will be really deployed differently because all of them will move to the WEB-INF/lib (and we still check for duplicates and take the latest one or the one we ship by default)

then the jars in /plugins in a WAR will only be there for smart client (but if you don't export for smart client then those will be fully gone)
that should really fix a lot of weird classloading issues.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: NG Client not deploying on Tomcat 9 - Servoy 2021.12

Postby swingman » Tue Jul 19, 2022 9:12 am

mboegem wrote:Hi Johan,

I suppose Christian means that including the Office JavaScript API service from SPM breaks this deployment.
I've heard a similar issue from other people, using this service


Exactly. Everything works fine in developer. We can load the main solution in a browser and in Developer we can switch to the Outlook-specific solution which loads the main solution as a module and make this show in Outlook.
It all appears to work fine.

However, when we export a .war to deploy on a Tomcat we can deploy, but the login-page of the main solution comes up blank in the browser. There are no errors in the logs on the server.
The Javascript console in the browser shows that a number of cs and js files have failed to load. The missing files don't seem to have random signatures in their filenames. (see my earlier screenshots, but open them in a separate tab or window -- the forum cuts off the right-hand side)

I'm not sure how to get go about sorting this out...
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Re: NG Client not deploying on Tomcat 9 - Servoy 2021.12

Postby jcompagner » Tue Jul 19, 2022 9:21 am

again how do you run it in outlook?
what does that mean?
because if you run servoy in an iframe and that iframe has a different domain then what you see in the browsers url bar, this will not work out of the box
you need to tweak various settings like https://developer.mozilla.org/en-US/doc ... -ancestors
but also very likely you need to run in https mode and you need to configure tomcat to configure the session cookie: https://tomcat.apache.org/tomcat-9.0-do ... essor.html
(the same-site must be "none")
so you need a context.xml file in tomcat (see the war exporter page) that has something like this:

<CookieProcessor sameSiteCookies="none" />
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: NG Client not deploying on Tomcat 9 - Servoy 2021.12

Postby swingman » Tue Jul 19, 2022 10:50 am

Hi Jan,

We are running in https mode on a staging server.
To run Servoy as an Add-In in Outlook, we load our manifest.xml file as an add-in in Outlook.
I will DM you the mainfest.xml.
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Re: NG Client not deploying on Tomcat 9 - Servoy 2021.12

Postby jcompagner » Tue Jul 19, 2022 12:42 pm

i can't do anyting with that
what is the end result in the browser???
is servoy embeded in an iframe? if that is the case look at my comments you need to configure Servoy (admin page) and also Tomcat where servoy is running in (context.xml, set the right cookies)

IFrames by default only works if the domain name of the iframe and the site loading the iframe is the same, if the domains are different then you need to configure stuff.
(and no not in outloook or that manifest but servoy and tomcat)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: NG Client not deploying on Tomcat 9 - Servoy 2021.12

Postby jcompagner » Tue Jul 19, 2022 12:44 pm

by the way, the deployed servoy application does that run fine if you just go to that url in the browser (so no outlook just plain loading it in a browser)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: NG Client not deploying on Tomcat 9 - Servoy 2021.12

Postby swingman » Thu Jul 21, 2022 12:24 am

what is the end result in the browser???


We get a blank screen running both normal Servoy and Servoy inside Outlook...
No errors on the server, just errors in the browser console...
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Re: NG Client not deploying on Tomcat 9 - Servoy 2021.12

Postby jcompagner » Thu Jul 21, 2022 9:48 am

you still get in both scenarios that injector problem?
you made a lot red so i can't see the actual problem that i need to see the be able to help
Because this very likely means that the server thinks this component should be there but for some reason it isn't
besides that you also get 404 so it doesn't load all the resources that could also be a problem

So without my seeing the actual server and the errors i can't do much
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Next

Return to Discuss possible Issues and Bugs

Who is online

Users browsing this forum: No registered users and 6 guests