日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

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

發(fā)布時(shí)間:2023/12/18 编程问答 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 java jnlp被阻止_JNLP应用程序Web服务访问被拒绝 - java.io.FilePermission 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

我的jnlp應(yīng)用程序有問題 . 所有jar都使用可信證書簽名,在主jar中有Codebase *和Permissions屬性 . 在jnlp文件中有大約130個(gè)簽名的jar,并且JNLP中的權(quán)限設(shè)置為 . 我有窗口:應(yīng)用程序因安全性而被阻止:

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權(quán)限:所有權(quán)限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);

應(yīng)用程序正在運(yùn)行jre 8.是否有可能強(qiáng)制應(yīng)用程序在沒有阻塞窗口的情況下運(yùn)行?

總結(jié)

以上是生活随笔為你收集整理的java jnlp被阻止_JNLP应用程序Web服务访问被拒绝 - java.io.FilePermission的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。