JNLP文件从HTTP下载被Java安全阻止运行。

huangapple 未分类评论55阅读模式
英文:

JNLP file downloaded from http is blocked by Java security from running

问题

我有一个应用程序,部署在仅支持HTTP协议的Weblogic服务器上。当我访问应用程序的URL时,它会下载一个名为App-Client.jnlp的JNLP文件。但是当我尝试运行相同的应用程序时,Java会阻止该应用程序的运行。

请查看下面的截屏以获取更多信息。

JNLP文件从HTTP下载被Java安全阻止运行。

到目前为止,我已经尝试了以下两个方法:

  1. 尝试在C:\Windows\Sun\Java\Deployment\DeploymentRuleSet.jar位置的ruleset.xml中定义一个新的规则集,并像下面这样定义一个新规则以及现有规则。但是没有起作用。

    <rule>
    	<id location="HTTP://COMPLETE_URL:PORT/PATH" />
    	<action permission="run" />
    </rule>
    
  2. 尝试将具有HTTP协议的URL添加到Java控制面板中的异常列表中,但它甚至不能将我的URL保存到异常列表中,因为它会最初添加,但我在异常列表对话框上按下“确定”后就会消失。

是否有人有任何想法该怎么办?

非常感谢任何帮助。

英文:

I have an application which is deployed on Weblogic server on HTTP protocol only. When I am hitting the application URL then it is downloading a JNLP file like App-Client.jnlp. But when I am trying to run the same then Java is blocking the said application from running.

See the below screenshot for the same.

JNLP文件从HTTP下载被Java安全阻止运行。

So far I have tried two below things

  1. Tried to define a new ruleset in ruleset.xml in the jar file location at C:\Windows\Sun\Java\Deployment\DeploymentRuleSet.jar and defined a new rule along with the existing rules like below. But it didn't work.

    &lt;rule&gt;
    &lt;id location=&quot;HTTP://COMPLETE_URL:PORT/PATH&quot; /&gt;
    &lt;action permission=&quot;run&quot; /&gt;
    &lt;/rule&gt;

  2. Tried to add the URL with HTTP protocol into the exception list of Java in control panel but it is not even persisting my URL into the exception list as in it adds initially but the moment I press Ok on the exception list dialogue it vanishes.

Has anybody got any idea what to do?

Any help would be highly appreciated.

huangapple
  • 本文由 发表于 2020年4月6日 21:29:47
  • 转载请务必保留本文链接:https://java.coder-hub.com/61060984.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定