英文:
JNLP file downloaded from http is blocked by Java security from running
问题
我有一个应用程序,部署在仅支持HTTP协议的Weblogic服务器上。当我访问应用程序的URL时,它会下载一个名为App-Client.jnlp
的JNLP文件。但是当我尝试运行相同的应用程序时,Java会阻止该应用程序的运行。
请查看下面的截屏以获取更多信息。
到目前为止,我已经尝试了以下两个方法:
-
尝试在
C:\Windows\Sun\Java\Deployment\DeploymentRuleSet.jar
位置的ruleset.xml
中定义一个新的规则集,并像下面这样定义一个新规则以及现有规则。但是没有起作用。<rule> <id location="HTTP://COMPLETE_URL:PORT/PATH" /> <action permission="run" /> </rule>
-
尝试将具有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.
So far I have tried two below things
-
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.<rule>
<id location="HTTP://COMPLETE_URL:PORT/PATH" />
<action permission="run" />
</rule> -
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.
专注分享java语言的经验与见解,让所有开发者获益!
评论