Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Webstart application can't find resource after installation of Java for Mac OS X 10.5 Update 2



Hi Bino,

--On 25. September 2008 12:24:44 -0700 Bino George <email@hidden> wrote:

We believe we have isolated the pattern that is broken with the 1.5.0_16
webstart. This problem happens
when you try to get a new URL to a resource using an existing URL as
shown below :
URL resourceBase = MyClass.class.getResource("myfile");
URL newURL = new URL(resourceBase, "anotherfile");
The workaround it to use Class.getResource instead :
URL resourceBase = MyClass.class.getResource("myfile");
URL newURL = MyClass.class.getResource("anotherfile");
This works reliably on all platforms and all versions.

thanks for that, but I'm not sure how that applies in my case. Here's the code:


if (SettingsPersistence.isWebStart()) {
logger.info("Running in WebStart");
System.setProperty("java.security.auth.login.config", getClass().getClassLoader().getResource("UklanAdminGui.conf").toString());
} else {
logger.info("Not in WebStart");


System.setProperty("java.security.auth.login.config", "file:UklanAdminGui.conf");
}


The first part is the one that's broken - I guess. Actually I'm unsure right now, because we also have this in the JNLP:

<property name="java.security.auth.login.config" value="jar:http://uklaninfo.rrz.uni-koeln.de/uklanadmin.jar!/UklanAdminGui.conf"/>

It's been a while since we wrote that. Anyway, assuming the System.setProperty() call is the relevant one, isn't that already doing what you suggest we do?

Thanks, Sebastian
--
    .:.Sebastian Hagedorn - RZKR-R1 (Gebäude 52), Zimmer 18.:.
Zentrum für angewandte Informatik - Universitätsweiter Service RRZK
.:.Universität zu Köln / Cologne University - ✆ +49-221-478-5587.:.
                  .:.:.:.Skype: shagedorn.:.:.:.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Webstart application can't find ressource after installation of Java for Mac OS X 10.5 Update 2 (From: Sebastian Hagedorn <email@hidden>)
 >Re: Webstart application can't find ressource after installation of Java for Mac OS X 10.5 Update 2 (From: Mike Swingler <email@hidden>)
 >Re: Webstart application can't find ressource after installation of Java for Mac OS X 10.5 Update 2 (From: Sebastian Hagedorn <email@hidden>)
 >Re: Webstart application can't find ressource after installation of Java for Mac OS X 10.5 Update 2 (From: Bino George <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.