>
I tried in vain to set a more specific Permission than java.security.AllPermission
This set works (I found out using IBM's JDK, Sun's would not tell about the getClassLoader Permission):
permission java.net.SocketPermission "myserver", "resolve, connect";
permission java.lang.RuntimePermission "getClassLoader";