From buskatze at gmail.com Tue Nov 18 10:47:13 2008 From: buskatze at gmail.com (jeti) Date: Tue, 18 Nov 2008 19:47:13 +0100 Subject: [Discuss] how to obtain privileges for calling JAR function? Message-ID: <49230DB1.6050000@gmail.com> hi all i already tried at dev-extensions mailing list, which until now didnt solve my problem i wanna create a firefox 3.* extension which currently is structured like this chrome |---content |----- firepastry.xul |----- scripts |-------- overlay.js chrome.manifest components |----------Pastry.js install.rdf lib |-------FreePastry-2.0_04.jar within components/Pastry.js i try to build this (http://freepastry.org/FreePastry/tutorial/src/lesson1/DistTutorial.java) example but just with javascript creating the needed classes and invoking library functions seem to work, but if i try to PastryNodeFactory factory = new SocketPastryNodeFactory(nidFactory, bindport, env); /// the JS code would be a bit longer, so i post only the java example equivalent i get an exception java.security.AccessController.doPrivileged(Native Method) sun.plugin.liveconnect.SecureInvocation$2.run(SecureInvocation.java:140) java.security.AccessController.doPrivileged(Native Method) sun.plugin.liveconnect.SecureInvocation.CallMethod(SecureInvocation.java:121) sun.plugin.navig.motif.AThread.handleRequest(Native Method) sun.plugin.navig.motif.AThread.JNIHandleLoop(AThread.java:40) sun.plugin.navig.motif.AThread.run(AThread.java:32) i think its because it of maybe creating a serversocket and thus throwing a securityexception now my question is: how can i obtain the needed privileges to use the library correctly? what are the possibilities? signing the JAR didnt help and: is my interpretation of the exception/failure condition correct or is the problem a completely different one, as far as you can see? thx all