AdoptOpenJDK / AdoptOpenJDK/IcedTea-Web

Jars are downloaded several times during application running (and it fails)

Open
#895 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
268
Forks
96
PR merge metrics
No merged PRs in 30d

Description

hello,
I've created https://github.com/karakun/OpenWebStart/issues/536#issue-1627954410 but the isuue is perhaps more specific to IcedTea-Web ?

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.