2015-10-06 91 views
0

我有一个JNLP/Web Start的安全Apache HTTP服务器上的应用程序上(没有Tomcat的 - 我需要吗?)。它已经使用由java生成的免费密钥库进行了签名。当我启动它,我收到以下错误:Java Web Start的JNLP应用程序是由Java安全阻止HTTPS的Apache Web服务器

For security, applications must now meet the requirements for the High or Very High security settings, or be part of the Exception Site List, to be allowed to run.

我已经添加了位置异常站点列表(用斜线包括所有子目录和文件),但我还是得到此错误。

当然,它不适用于Chrome。我尝试从命令行启动jnlp文件,从Firefox和Internet Explorer启动URL,它们都给我提供了同样的错误。

我已经获得证书并签署了我的jar文件。我已经运行的jarsigner -verify的jar文件,一切看起来为了(但我不知道我在找):

jarsigner -verify -verbose -keystore garageMonitor.jks ../GarageMonitorFinder.jar 

s k  1561 Fri Oct 09 18:19:48 UTC 2015 META-INF/MANIFEST.MF 
     1425 Fri Oct 09 18:19:50 UTC 2015 META-INF/8D95B904.SF 
     8149 Fri Oct 09 18:19:50 UTC 2015 META-INF/8D95B904.RSA 
      0 Fri Oct 09 14:13:14 UTC 2015 META-INF/ 
      0 Fri Oct 09 14:13:14 UTC 2015 com/ 
      0 Fri Oct 09 14:13:14 UTC 2015 com/thompco/ 
      0 Fri Oct 09 14:13:14 UTC 2015 com/thompco/garagemonitor/ 
smk  107 Fri Oct 09 14:13:12 UTC 2015 META-INF/INDEX.LIST 
smk  1128 Fri Oct 09 14:13:14 UTC 2015 com/thompco/garagemonitor/GarageMonitor.class 
smk  2320 Fri Oct 09 14:13:14 UTC 2015 com/thompco/garagemonitor/GarageMonitorBroadcastClient.class 
smk  3631 Fri Oct 09 14:13:14 UTC 2015 com/thompco/garagemonitor/GarageMonitorFinder.class 
smk  903 Fri Oct 09 14:13:14 UTC 2015 com/thompco/garagemonitor/GarageMonitorGui$1.class 
smk  903 Fri Oct 09 14:13:14 UTC 2015 com/thompco/garagemonitor/GarageMonitorGui$2.class 
smk  903 Fri Oct 09 14:13:14 UTC 2015 com/thompco/garagemonitor/GarageMonitorGui$3.class 
smk  822 Fri Oct 09 14:13:14 UTC 2015 com/thompco/garagemonitor/GarageMonitorGui$4$1.class 
smk  954 Fri Oct 09 14:13:14 UTC 2015 com/thompco/garagemonitor/GarageMonitorGui$4.class 
smk  8192 Fri Oct 09 14:13:14 UTC 2015 com/thompco/garagemonitor/GarageMonitorGui.class 

    s = signature was verified 
    m = entry is listed in manifest 
    k = at least one certificate was found in keystore 
    i = at least one certificate was found in identity scope 

jar verified. 

当我尝试运行JNLP文件,我仍然得到上述错误。有什么办法可以解决这个问题吗?

反正是有故障的拍摄/调试呢?

+0

我从Firefox访问相同的URL(和JNLP文件)在Debian系统上,它工作得很好,所以这个问题肯定是与Windows,但我不能找出我在做什么错我的配置。 – jordanthompson

+0

我试着下载我的windows版本的java以匹配Debian上的一个,但它仍然无法工作。 – jordanthompson

+0

所以我可能在我的清单中发现了一些问题(代码库不正确等),但是在做出更改后,我看到了同样的问题。任何建议,看看会很好。 – jordanthompson

回答

2

OK,拉我的头发其余部分出后我偶然在this thread。结果你:

go to your java control panel and settings... uncheck 'Keep temporary internet files on my computer'. Apply changes and try again your .jnlp

它的工作原理!它的确如此。一旦。

我后来发现从安德鲁·汤普森(无亲属关系)被称为JaNeLa这是非常有用的JNLP调试器。它最初主办的网站已关闭,但AlBundy(我们以为他只是一个鞋子推销员),把它在github here 原来这是非常容易使用:只需运行jar,并在网址或文件指向它(网址是更好的。)

+0

为我工作,谢谢。 –

相关问题