java jnlp被阻止_JNLP应用程序Web服务访问被拒绝 - java.io.FilePermission

我的jnlp应用程序有问题 . 所有jar都使用可信证书签名,在主jar中有Codebase *和Permissions属性 . 在jnlp文件中有大约130个签名的jar,并且JNLP中的权限设置为 . 我有窗口:应用程序因安全性而被阻止:

Caused by: java.security.AccessControlException: access denied ("java.io.FilePermission" "C:\Users\artur\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\46\254523ee-26b31f3f" "read"):

com.sun.deploy.security.BlockedException: Your security settings have blocked an application from running due to missing a "Permissions" manifest attribute in the main jar.

at com.sun.deploy.security.BlockedDialog.show(Unknown Source)

at com.sun.deploy.security.TrustDecider.validateChain(Unknown Source)

at com.sun.deploy.security.TrustDecider.isAllPermissionGrantedInt(Unknown Source)

at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)

at com.sun.deploy.security.DeployURLClassLoader.getResourcePermission(Unknown Source)

at com.sun.deploy.security.DeployURLClassLoader.getResourceAsStream(Unknown Source)

at javax.xml.bind.ContextFinder.find(Unknown Source)

at javax.xml.bind.JAXBContext.newInstance(Unknown Source)

at javax.xml.bind.JAXBContext.newInstance(Unknown Source)

at javax.xml.bind.JAXBContext.newInstance(Unknown Source)

at com.sun.xml.internal.ws.assembler.MetroConfigLoader$3.run(Unknown Source)

at com.sun.xml.internal.ws.assembler.MetroConfigLoader$3.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at com.sun.xml.internal.ws.assembler.MetroConfigLoader.createJAXBContext(Unknown Source)

at com.sun.xml.internal.ws.assembler.MetroConfigLoader.loadMetroConfig(Unknown Source)

at com.sun.xml.internal.ws.assembler.MetroConfigLoader.init(Unknown Source)

at com.sun.xml.internal.ws.assembler.MetroConfigLoader.(Unknown Source)

at com.sun.xml.internal.ws.assembler.TubelineAssemblyController.getTubeCreators(Unknown Source)

at com.sun.xml.internal.ws.assembler.MetroTubelineAssembler.createClient(Unknown Source)

at com.sun.xml.internal.ws.client.Stub.createPipeline(Unknown Source)

at com.sun.xml.internal.ws.client.Stub.(Unknown Source)

at com.sun.xml.internal.ws.client.Stub.(Unknown Source)

at com.sun.xml.internal.ws.client.Stub.(Unknown Source)

at com.sun.xml.internal.ws.client.sei.SEIStub.(Unknown Source)

at com.sun.xml.internal.ws.client.WSServiceDelegate.getStubHandler(Unknown Source)

at com.sun.xml.internal.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(Unknown Source)

at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(Unknown Source)

at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(Unknown Source)

at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(Unknown Source)

at javax.xml.ws.Service.getPort(Unknown Source)

Caused by: java.security.AccessControlException: access denied ("java.io.FilePermission" "C:\Users\artur\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\46\254523ee-26b31f3f" "read")

at java.security.AccessControlContext.checkPermission(Unknown Source)

at java.security.AccessController.checkPermission(Unknown Source)

at java.lang.SecurityManager.checkPermission(Unknown Source)

at com.sun.javaws.security.JavaWebStartSecurity.checkPermission(Unknown Source)

at java.lang.SecurityManager.checkRead(Unknown Source)

at java.util.zip.ZipFile.(Unknown Source)

at java.util.zip.ZipFile.(Unknown Source)

at java.util.jar.JarFile.(Unknown Source)

at java.util.jar.JarFile.(Unknown Source)

at com.sun.deploy.util.JarUtil.createJarFile(Unknown Source)

at com.sun.deploy.security.TrustDecider.checkMainJarManifest(Unknown Source)

这是主要的jar清单:

Build-Jdk:1.8.0_161权限:所有权限Main-Class:path.to.Launcher Codebase:*

这是jnlp:

MyApplication

App

获取端口的代码:

@WebEndpoint(name = "XKMSPort")

public XKMSPortType getXKMSPort() {

return super.getPort(new QName("http://www.w3.org/2002/03/xkms#wsdl", "XKMSPort"), XKMSPortType.class);

应用程序正在运行jre 8.是否有可能强制应用程序在没有阻塞窗口的情况下运行?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值