AccessControlException:拒绝访问 - (“java.lang.RuntimePermission”“createClassLoader”) - 通过JNLP调用ASMX Web服务

时间:2013-07-16 09:39:33

标签: java security jnlp java-web-start accesscontrolexception

我正在尝试从Java调用asmx web服务,我创建了jar文件并在JNLP中引用它..但是当我尝试调用时,它会给出这个错误,

java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "createClassLoader")
    at java.security.AccessControlContext.checkPermission(Unknown Source)
    at java.security.AccessController.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkCreateClassLoader(Unknown Source)
    at java.lang.ClassLoader.checkCreateClassLoader(Unknown Source)
    at java.lang.ClassLoader.<init>(Unknown Source)
    at org.apache.commons.discovery.jdk.PsuedoSystemClassLoader.<init>(PsuedoSystemClassLoader.java:73)
    at org.apache.commons.discovery.jdk.JDK12Hooks.findSystemClassLoader(JDK12Hooks.java:215)
    at org.apache.commons.discovery.jdk.JDK12Hooks.<clinit>(JDK12Hooks.java:73)

0 个答案:

没有答案