NGClient and SmartClient on the same Tomcat

Questions and Answers on installation, deployment, management, locking, tranasactions of Servoy Application Server

NGClient and SmartClient on the same Tomcat

Postby marco.rossi » Mon Feb 18, 2019 6:40 pm

Hi All,

I loaded my solution on Tomcat and the NGClient works like a charm.
The problem cames when I try to run the SmartClient from the same application-server instance.

The error I get is:
com.sun.deploy.net.FailedDownloadException: Unable to load resource: (http://localhost:9090/prism/lib/log4j.j ... 0331928873, ERROR_1550331928873)
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


and also:
java.io.FileNotFoundException: http://localhost:9090/prism/lib/log4j.j ... 0331928873
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.access$200(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessController.doPrivilegedWithCombiner(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(Unknown Source)
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


Seems that it's looking for a version of "log4j" that doesn't exist.
I tried also to put "eager" within the related .jnlp file founded within "..\apache-tomcat\webapps\prism\plugins\it2be-core" but doesn't solve the problem.

Any idea?
Attachments
3.PNG
3.PNG (128.01 KiB) Viewed 2920 times
2.PNG
2.PNG (114.26 KiB) Viewed 2920 times
1.PNG
1.PNG (115.34 KiB) Viewed 2920 times
Marco Rossi
Senior Analyst Developer
Freelance Consultant

IT Manager @Mantho
Webmaster @Sitoliquido
marco.rossi
 
Posts: 110
Joined: Sun Apr 12, 2015 9:33 pm

Re: NGClient and SmartClient on the same Tomcat

Postby sbutler » Tue Feb 19, 2019 5:19 am

See: viewtopic.php?f=15&t=22404

You need to upgrade your IT2BE components to the latest version.
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 and SmartClient on the same Tomcat

Postby marco.rossi » Fri Feb 22, 2019 7:10 pm

Hi Scott,
thank you for replying.

I did what you suggested but it's still not working.
I downloaded the it2be installer and I re-installed the two components we're using: "tools" and "data". They're both up to date:
Data:
up to date.PNG
up to date.PNG (110.64 KiB) Viewed 2847 times

Tools
up to date 2.PNG
up to date 2.PNG (150.05 KiB) Viewed 2847 times
.

I don't know if it can be helpful but here is how log4j is deployed under NGClient webapp folder:
how it is on ngclient.PNG
how it is on ngclient.PNG (31.6 KiB) Viewed 2847 times


Thank you for your help
Marco Rossi
Senior Analyst Developer
Freelance Consultant

IT Manager @Mantho
Webmaster @Sitoliquido
marco.rossi
 
Posts: 110
Joined: Sun Apr 12, 2015 9:33 pm

Re: NGClient and SmartClient on the same Tomcat

Postby sbutler » Tue Feb 26, 2019 10:00 pm

The conflict might be with another plugin then possibly? In Servoy 8.4 (which I assume you are using) log4j.jar was removed. The IT2BE plugins were depending on those, so we released an update that resolved that issue. log4j2.jar is now what Servoy 8.4 uses.
So, that means you likely still have a .jnlp file looking for the old log4j.jar, so you would need to find that and fix it. If you updated your IT2BE to latest version, the IT2BE jnlp's should already be fixed.
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 and SmartClient on the same Tomcat

Postby marco.rossi » Sat Mar 02, 2019 12:57 am

Yes, I'm using Servoy 8.4.
Following your suggestion I found another plugin (drmaison) that was using another version of log4j.jar. By fixing that all works fine.
Thank you
Marco Rossi
Senior Analyst Developer
Freelance Consultant

IT Manager @Mantho
Webmaster @Sitoliquido
marco.rossi
 
Posts: 110
Joined: Sun Apr 12, 2015 9:33 pm


Return to Servoy Server

Who is online

Users browsing this forum: No registered users and 5 guests