Hello,
My JWS application is hosted on AWS public Cloud (it’s AWS but could be another one), for example : https://myapp.com/
The codebase of the application in jnlp is https://myapp.com/
When I run OWS, it downloads all jars, starts the application, but when I navigate into my app it tries to download jars, and my app fails.
I checked in the cache, and into the logs: the jars are correctly downloaded before starting the application. I don’t know why there is an additional download.
I suspected that the OWS cache reference jars by IP and not by dns name, because the DNS resolution of https://myapp.com/ could return several IPs.
So I did a test by replacing the codebase of my app with an IP instead of DNS name, ex : https://50.50.20.12/
Then, the application runs correctly, and in the logs I can see that the jars are no longer downloaded.
Do you think that my problem is due to DNS resolution ?
Thanks for your help
Regards
Jars are downloaded several times during application running (and it fails)
-
- Posts: 564
- Joined: 24 Mar 2020, 13:37
Re: Jars are downloaded several times during application running (and it fails)
You say the jars are downloaded and the application is started successfully but after that jars are downloaded again?
Can you please send the logs? What does your C:\Users\Janak\.cache\icedtea-web\cache\recently_used.cache look like?
Is your application using JNLP API like DownloadService?
Can you please send the logs? What does your C:\Users\Janak\.cache\icedtea-web\cache\recently_used.cache look like?
Is your application using JNLP API like DownloadService?
Re: Jars are downloaded several times during application running (and it fails)
Hello,
Here's the logs and the recently_used.cache.
We don't use JNLP API like DownloadService.
Sometimes the app can't start due to a missing ressource in a jar OWS tries to download...but it has it in his cache.
Regards.
Here's the logs and the recently_used.cache.
We don't use JNLP API like DownloadService.
Sometimes the app can't start due to a missing ressource in a jar OWS tries to download...but it has it in his cache.
Regards.
- Attachments
-
- recently_used.cache.log
- (10.37 KiB) Downloaded 20 times
-
- 2023-04-05_10_55_53.833-ows-stage2.log
- (1.03 MiB) Downloaded 21 times
-
- 2023-04-05_10_55_53.833-ows-stage1.log
- (27.01 KiB) Downloaded 19 times
Re: Jars are downloaded several times during application running (and it fails)
Hello,
any update on my issue ?
any update on my issue ?
-
- Posts: 564
- Joined: 24 Mar 2020, 13:37
Re: Jars are downloaded several times during application running (and it fails)
can you please try with the latest release 1.8.0? Please clean cache, run the app once, the run the app again and send logs from bo the runs. Please set log level to debug and also log contents of jnlp.
Re: Jars are downloaded several times during application running (and it fails)
Hello Janak,
here's the logs for the 2 runs.
First run failed quickly...the second one failed 1 minute later...you see exception stack traces when application fails.
Thanks.
here's the logs for the 2 runs.
First run failed quickly...the second one failed 1 minute later...you see exception stack traces when application fails.
Thanks.
- Attachments
-
- OWS.7z
- (42.43 KiB) Downloaded 1 time