-
1. Re: AccessControlException on create method
mpalicka Aug 20, 2002 7:28 AM (in response to xlahaut)Hi!
I'm facing exactly the same problem.
I'm not sure whether it is related to security settings for the server (JBoss) or for the client (signed applet).
My applet only works if I grant "java.security.AllPermission"
to it using the Java Plugin Control Panel (Java Runtime Parameters). But a signed applet should work without any policy settings.
Thanks in advance for help. -
2. Re: AccessControlException on create method
sverker Mar 21, 2003 7:56 PM (in response to xlahaut)A bit late but when facing the same problem and searching the web for solutions I found the same question over and over again but never any answers.
This should probably be in a FAQ and the issue is the same for both applets and webstart applications.
The catch is that each jar file that your applet or webstart application is using have to be signed, even e.g. the jboss client jarfiles. To do that, I added the following target to my build.xml:
<!-- ================================================ -->
<!-- Sign jar files that are used by applet -->
<!-- ================================================ -->
and then I include it in my .war by adding the following line to the war task:
It worked like a charm, no need to mess with any policy files no more. -
3. Re: AccessControlException on create method
hethcox Feb 20, 2004 8:51 PM (in response to xlahaut)Big ups to sverker! My head was starting to hurt from banging it against the wall. He's right, this question should be in a FAQ.