my dog learned polymorphism*
The moose likes Applets and the fly likes Signed Applet retuns Java.security.AccessControlException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Signed Applet retuns Java.security.AccessControlException" Watch "Signed Applet retuns Java.security.AccessControlException" New topic
Author

Signed Applet retuns Java.security.AccessControlException

Nitin Sinha
Greenhorn

Joined: May 08, 2008
Posts: 17
Hi,

I have an signed applet that tries to run ipconfig/all on user system to get the unique macAddress from the client machine

but each time I try to run it it throws the folling exception -



I tried to google the issue but it says that I need to set policy file in bb-manifest.xml. Where do i need to define this file & how would my applet gain refernce to policy from bb-manifest.xml
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167
    
    8

Looks like you might not have signed the jar properly. Does your signed jar have MYCERT entries under META-INF?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41085
    
  43
I've never heard of a bb-manifest.xml file; I doubt that it will help in this case.

The code may need to be run as privileged code, though. See HowCanAnAppletReadFilesOnTheLocalFileSystem for more details.


Ping & DNS - my free Android networking tools app
 
wood burning stoves
 
subject: Signed Applet retuns Java.security.AccessControlException
 
Similar Threads
Java AccessControlException : Access Denied (Java.io.fileSystem) error while running Applet from JS
AccessControlException with a custom ClassLoader
print Screen from a jsp
JSP having problem accessing signed .jar
AccessControlException is thrown when a signed applet is trying to read a file from local system