IcedTeaWeb Started application apparently tries to download classpath resources from server

Jiri Vanek jvanek at redhat.com
Thu Feb 21 11:21:30 UTC 2019


On 2/21/19 8:51 AM, Christian Svedin wrote:
> On Wed, 2019-02-20 at 16:24 +0100, Jiri Vanek wrote:
>> Yes. Codebase is where your code is laying, and thus where ITW is
>> searching for it.
>>
>> On 2/20/19 2:12 PM, Christian Svedin wrote:
>>>
>>> I have an application that is started using webstart. After the
>>> application has started I get
>>> logging on my server that says that something is trying to load
>>> resources that doesn't exist.
>>>
>>> To me it looks like my webstarted application is trying to load
>>> classes/resources from the url that
>>> is codebase in my jnlp.
>>>
>>> For example, it seems like
>>> getClass().getClassLoader().getResource("/missing/resource") tries
>>> to
>>> load from http://my.application/webstart/missing/resource if my
>>> codebase is
>>> http://my.application/webstart
>> Where else would you like it to look?
>>
> I would prefer that it looks inside the resources listed in my jnlp-

And it is not doing so?

I have just tried in-jar resource, and it was tried first.

> file. Not trying to dynamically load classes from the codebase. That's
> how oracles webstart does it right?
> 
> If you expect it to load from jars, then you are right, and that is first place it should look.
> 
> 
> 
> Does the classloader i get from icedtea-web behave the way I think? Is this how it's supposed to
> work? ��
> 
> If this is how it's supposed to work, doesn't this have quite big performance implications?
> 
> 
> / Christian
> 
> 
> 
> 
> 
> 


-- 
Jiri Vanek
Senior QE engineer, OpenJDK QE lead, Mgr.
Red Hat Czech
jvanek at redhat.com    M: +420775390109


More information about the distro-pkg-dev mailing list