This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 151536 - MAC: AccessControlException running WeatherApp as WebStart
Summary: MAC: AccessControlException running WeatherApp as WebStart
Status: VERIFIED WORKSFORME
Alias: None
Product: javafx
Classification: Unclassified
Component: Deployment (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: Adam Sotona
URL:
Keywords: RELNOTE
Depends on:
Blocks:
 
Reported: 2008-10-27 21:52 UTC by Lark Fitzgerald
Modified: 2008-11-13 17:01 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
console image (348.27 KB, image/jpeg)
2008-10-27 21:52 UTC, Lark Fitzgerald
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lark Fitzgerald 2008-10-27 21:52:21 UTC
#463	Oct 27, 2008 9:36:20 PM

Mac and Mac PPC.

1. Run Weather app as a WebStart.  Get AccessControlException.  The error would not paste from the java console so I took a screenshot (attached).
Comment 1 Lark Fitzgerald 2008-10-27 21:52:58 UTC
Created attachment 72721 [details]
console image
Comment 2 Andrey Yamkovoy 2008-11-07 12:24:13 UTC
This is not a bug.
According with the thread http://forums.sun.com/thread.jspa?threadID=577454 you have the following options to run Weather on Mac:
"You Have two options. one is to sign the applet and second is to change the java.policy file of the user in jre/ext/security directory."

It can be fixed on our side by generating applet.policy file for the project which grant all permissions for the project jars and setting the jvm args in the jnlp 
file. By this reason I change it to RFE and reassign to Adam.
Comment 3 Adam Sotona 2008-11-07 23:07:39 UTC
There is nothing to enhance.
You cannot override applet policy unless the application is signed, otherwise it would be a big security hole.
If your application requires some secured classes or secured access, select the option to sign it. Then it will add
<all-permissions> requirement to the JNLP and it should work.
If you experience that it is still not working, please report it to the JavaFX Runtime to JIRA.
Comment 4 Lark Fitzgerald 2008-11-13 17:01:36 UTC
signing the jars resolves the issue.

Promoted build #44 contains SDK 51 (778) 
Product Version: NetBeans IDE 6.5 (Build 200811100001)
Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)