In the meantime, we implemented a work around which should take care of the issue until the JNLPClassLoader gets corrected.
Basically, we use a wrapper which filters out all duplicates contained in the Enumeration<URL> returned by findResources(String name).
Search found 13 matches
- 28 Sep 2023, 07:04
- Forum: Public Forums
- Topic: JNLPClassLoader finds the same resource twice when using jnlp extension
- Replies: 8
- Views: 311
- 06 Sep 2023, 16:08
- Forum: Public Forums
- Topic: JNLPClassLoader finds the same resource twice when using jnlp extension
- Replies: 8
- Views: 311
Re: JNLPClassLoader finds the same resource twice when using jnlp extension
Maybe you can use this application (see attachment). There is a main.jar with a Main.class which reads all resources named "items.txt" and displays their content. This main.jar is referenced in the jnlp_main.jnlp. Then there are two resource jars: res1.jar and res2.jar, each containing an ...
- 04 Aug 2023, 16:02
- Forum: Public Forums
- Topic: JNLPClassLoader finds the same resource twice when using jnlp extension
- Replies: 8
- Views: 311
- 03 Aug 2023, 16:10
- Forum: Public Forums
- Topic: OpenWebstart on Mac OSX and Temurin17; --add-exports Problem
- Replies: 5
- Views: 458
Re: OpenWebstart on Mac OSX and Temurin17; --add-exports Problem
Have you tried adding "--add-exports=java.desktop/sun.swing=ALL-UNNAMED" to the list?
- 03 Aug 2023, 15:58
- Forum: Public Forums
- Topic: JNLPClassLoader finds the same resource twice when using jnlp extension
- Replies: 8
- Views: 311
JNLPClassLoader finds the same resource twice when using jnlp extension
Our application uses a jnlp file ("first.jnlp") which references another jnlp file ("second.jnlp") as an extension: first.jnlp ...<resources> <extension href="second.jnlp" name="myExtension"/>... The second.jnlp references a jar file which contains an xml reso...
- 12 Jun 2023, 12:49
- Forum: Public Forums
- Topic: [Solved} Problem with JNLP caching in OpenWebStart
- Replies: 12
- Views: 6549
Re: Problem with JNLP caching in OpenWebStart
Our first tests were successful; the caching seems to be working properly with the new Version 1.8.0. Thank you!
- 26 May 2023, 11:12
- Forum: Public Forums
- Topic: [Solved} Problem with JNLP caching in OpenWebStart
- Replies: 12
- Views: 6549
- 14 Dec 2021, 10:26
- Forum: Public Forums
- Topic: [Solved} Problem with JNLP caching in OpenWebStart
- Replies: 12
- Views: 6549
Re: Problem with JNLP caching in OpenWebStart
There's still a problem if we use jnlp extensions in the original jnlp. These will be cached even if they don't have an href attribute.
- 13 Dec 2021, 09:36
- Forum: Public Forums
- Topic: [Solved} Problem with JNLP caching in OpenWebStart
- Replies: 12
- Views: 6549
Re: Problem with JNLP caching in OpenWebStart
>> These two should differ in their codebase attribute. What are the other differences between these two jnlps besides the codebase? Besides the difference in the codebase attribute, some of the jars have newer versions in one of the jnlps. The main class is contained in one of these jars. >> One mo...
- 10 Dec 2021, 15:41
- Forum: Public Forums
- Topic: ClassCastException in OWS Cache Viewer when clicking on More Information
- Replies: 1
- Views: 2533
ClassCastException in OWS Cache Viewer when clicking on More Information
In the Cache Viewer, when I select a cache entry (a file) and click on More Information, a new window opens and shows this exception:
java.lang.ClassCastException: java.lang.String cannot be cast to net.adoptopenjdk.icedteaweb.resources.cache.ResourceInfo
I use OpenWebStart 1.5.0.
java.lang.ClassCastException: java.lang.String cannot be cast to net.adoptopenjdk.icedteaweb.resources.cache.ResourceInfo
I use OpenWebStart 1.5.0.
- 10 Dec 2021, 13:11
- Forum: Public Forums
- Topic: [Solved} Problem with JNLP caching in OpenWebStart
- Replies: 12
- Views: 6549
Re: Problem with JNLP caching in OpenWebStart
>> Is OWS started automatically or are you supposed to "open" the downloaded jnlp? My experience with Chrome, Firefox, Edge is that when a jnlp link is clicked it the browser down loads the file which you have to "open" explicitly. Depending on the browser, it downoads the file a...
- 10 Dec 2021, 08:45
- Forum: Public Forums
- Topic: [Solved} Problem with JNLP caching in OpenWebStart
- Replies: 12
- Views: 6549
Re: Problem with JNLP caching in OpenWebStart
Thank you for your answer, although I'd like to ask you to clarify a little further: As I said before, the URLs provided to OWS are app_v1.host.com/myapp.jnlp, app_v2.host.com/myapp.jnlp etc. What I mean by "provided to OWS" is that I click on a link "app_v1.host.com/myapp.jnlp" ...
- 09 Dec 2021, 11:12
- Forum: Public Forums
- Topic: [Solved} Problem with JNLP caching in OpenWebStart
- Replies: 12
- Views: 6549
[Solved} Problem with JNLP caching in OpenWebStart
Hello, We have different versions of the same application deployed in various docker-containers on the same server, so they all resolve to the same IP. We access them as app_v1.host.com/myapp.jnlp, app_v2.host.com/myapp.jnlp etc. (I believe everything goes through an nginx reverse proxy). I have ins...