Page 1 of 1

NGClient and SmartClient on the same Tomcat

PostPosted: Mon Feb 18, 2019 6:40 pm
by marco.rossi
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?

Re: NGClient and SmartClient on the same Tomcat

PostPosted: Tue Feb 19, 2019 5:19 am
by sbutler
See: viewtopic.php?f=15&t=22404

You need to upgrade your IT2BE components to the latest version.

Re: NGClient and SmartClient on the same Tomcat

PostPosted: Fri Feb 22, 2019 7:10 pm
by marco.rossi
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 2904 times

Tools
up to date 2.PNG
up to date 2.PNG (150.05 KiB) Viewed 2904 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 2904 times


Thank you for your help

Re: NGClient and SmartClient on the same Tomcat

PostPosted: Tue Feb 26, 2019 10:00 pm
by sbutler
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.

Re: NGClient and SmartClient on the same Tomcat

PostPosted: Sat Mar 02, 2019 12:57 am
by marco.rossi
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