Java 8:在资源

时间:2015-12-16 01:26:31

标签: java java-8 jnlp

我正在努力让我的JNLP使用Java 8.我可以成功构建,但是当我尝试启动时,我得到以下错误。

com.sun.deploy.net.JARSigningException: Found unsigned entry in resource: file:/proj/dist/apps/libs/jdom.jar
    at com.sun.deploy.security.EnhancedJarVerifier.validate(Unknown Source)
    at com.sun.deploy.cache.CacheEntry.processJar(Unknown Source)
    at com.sun.deploy.cache.CacheEntry.access$2100(Unknown Source)
    at com.sun.deploy.cache.CacheEntry$7.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.cache.CacheEntry.writeFileToDisk(Unknown Source)
    at com.sun.deploy.cache.CacheEntry.writeFileToDisk(Unknown Source)
    at com.sun.deploy.cache.Cache.downloadResourceToTempFile(Unknown Source)
    at com.sun.deploy.cache.Cache.downloadResourceToCache(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
    at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
    at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
    at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

我已经对此进行了一些研究,看来在以前版本的Java中,只需切换"保留我计算机上的临时文件即可。 Java控制面板设置。这似乎不适用于Java 8.

我在引用的jdom.jar上运行jarsigner -verify,它说它已经过验证,但也会发出一些警告。警告会阻止JNLP发射吗?或者你们中的任何人都能看到其他任何可以指出我正确方向来解决这个问题的方法吗?

jarsigner -verify -verbose dist\apps\libs\jdom.jar  

    s       8520 Tue Feb 07 23:14:06 PST 2006 META-INF/MANIFEST.MF  
            7071 Tue Oct 10 18:47:54 PDT 2006 META-INF/SPSCERT.SF  
            2931 Tue Oct 10 18:47:54 PDT 2006 META-INF/SPSCERT.RSA  
               0 Mon Feb 16 15:56:52 PST 2004 META-INF/  
            2753 Mon Feb 16 15:56:50 PST 2004 META-INF/info.xml  
               0 Mon Feb 16 15:56:46 PST 2004 org/  
     m         0 Mon Feb 16 15:56:50 PST 2004 org/jdom/  
     m         0 Mon Feb 16 15:56:48 PST 2004 org/jdom/adapters/  
     m         0 Mon Feb 16 15:56:48 PST 2004 org/jdom/filter/  
     m         0 Mon Feb 16 15:56:48 PST 2004 org/jdom/input/  
     m         0 Mon Feb 16 15:56:50 PST 2004 org/jdom/output/  
     m         0 Mon Feb 16 15:56:50 PST 2004 org/jdom/transform/  
     m         0 Mon Feb 16 15:56:50 PST 2004 org/jdom/xpath/  
    sm       150 Mon Feb 16 15:56:50 PST 2004 JDOMAbout$1.class  
    sm       646 Mon Feb 16 15:56:50 PST 2004 JDOMAbout$Author.class  
    sm      3044 Mon Feb 16 15:56:50 PST 2004 JDOMAbout$Info.class  
    sm      2012 Mon Feb 16 15:56:50 PST 2004 JDOMAbout.class  
    sm      2979 Mon Feb 16 15:56:46 PST 2004 org/jdom/adapters/AbstractDOMAdapter.class  
    sm      2903 Mon Feb 16 15:56:48 PST 2004 org/jdom/adapters/CrimsonDOMAdapter.class  
    sm       455 Mon Feb 16 15:56:46 PST 2004 org/jdom/adapters/DOMAdapter.class  
    sm      3504 Mon Feb 16 15:56:48 PST 2004 org/jdom/adapters/JAXPDOMAdapter.class  
    sm      3255 Mon Feb 16 15:56:48 PST 2004 org/jdom/adapters/OracleV1DOMAdapter.class  
    sm      3261 Mon Feb 16 15:56:48 PST 2004 org/jdom/adapters/OracleV2DOMAdapter.class  
    sm      3847 Mon Feb 16 15:56:48 PST 2004 org/jdom/adapters/XercesDOMAdapter.class  
    sm      3846 Mon Feb 16 15:56:48 PST 2004 org/jdom/adapters/XML4JDOMAdapter.class  
    sm      7800 Mon Feb 16 15:56:48 PST 2004 org/jdom/Attribute.class  
    sm      6933 Mon Feb 16 15:56:48 PST 2004 org/jdom/AttributeList.class  
    sm      1465 Mon Feb 16 15:56:48 PST 2004 org/jdom/CDATA.class  
    sm      1468 Mon Feb 16 15:56:48 PST 2004 org/jdom/Comment.class  
    sm      1429 Mon Feb 16 15:56:48 PST 2004 org/jdom/Content.class  
    sm      3482 Mon Feb 16 15:56:48 PST 2004 org/jdom/ContentList$FilterList.class  
    sm      5034 Mon Feb 16 15:56:48 PST 2004 org/jdom/ContentList$FilterListIterator.class  
    sm      7000 Mon Feb 16 15:56:48 PST 2004 org/jdom/ContentList.class  
    sm       845 Mon Feb 16 15:56:48 PST 2004 org/jdom/DataConversionException.class  
    sm      4521 Mon Feb 16 15:56:48 PST 2004 org/jdom/DefaultJDOMFactory.class  
    sm      2299 Mon Feb 16 15:56:48 PST 2004 org/jdom/DescendantIterator.class  
    sm      2561 Mon Feb 16 15:56:48 PST 2004 org/jdom/DocType.class  
    sm      9412 Mon Feb 16 15:56:48 PST 2004 org/jdom/Document.class  
    sm     15700 Mon Feb 16 15:56:48 PST 2004 org/jdom/Element.class  
    sm      2244 Mon Feb 16 15:56:48 PST 2004 org/jdom/EntityRef.class  
    sm      1177 Mon Feb 16 15:56:48 PST 2004 org/jdom/filter/AbstractFilter.class  
    sm      1596 Mon Feb 16 15:56:48 PST 2004 org/jdom/filter/AndFilter.class  
    sm      3154 Mon Feb 16 15:56:48 PST 2004 org/jdom/filter/ContentFilter.class  
    sm      2479 Mon Feb 16 15:56:48 PST 2004 org/jdom/filter/ElementFilter.class  
    sm       179 Mon Feb 16 15:56:48 PST 2004 org/jdom/filter/Filter.class  
    sm      1371 Mon Feb 16 15:56:48 PST 2004 org/jdom/filter/NegateFilter.class  
    sm      1590 Mon Feb 16 15:56:48 PST 2004 org/jdom/filter/OrFilter.class  
    sm      1387 Mon Feb 16 15:56:48 PST 2004 org/jdom/FilterIterator.class  
    sm      4192 Mon Feb 16 15:56:48 PST 2004 org/jdom/IllegalAddException.class  
    sm      1137 Mon Feb 16 15:56:48 PST 2004 org/jdom/IllegalDataException.class  
    sm      1148 Mon Feb 16 15:56:48 PST 2004 org/jdom/IllegalNameException.class  
    sm       959 Mon Feb 16 15:56:48 PST 2004 org/jdom/IllegalTargetException.class  
    sm       914 Mon Feb 16 15:56:48 PST 2004 org/jdom/input/BuilderErrorHandler.class  
    sm      5901 Mon Feb 16 15:56:48 PST 2004 org/jdom/input/DOMBuilder.class  
    sm      2836 Mon Feb 16 15:56:48 PST 2004 org/jdom/input/JAXPParserFactory.class  
    sm      1698 Mon Feb 16 15:56:48 PST 2004 org/jdom/input/JDOMParseException.class  
    sm     13738 Mon Feb 16 15:56:48 PST 2004 org/jdom/input/SAXBuilder.class  
    sm     12563 Mon Feb 16 15:56:48 PST 2004 org/jdom/input/SAXHandler.class  
    sm      1724 Mon Feb 16 15:56:48 PST 2004 org/jdom/input/TextBuffer.class  
    sm      4148 Mon Feb 16 15:56:46 PST 2004 org/jdom/JDOMException.class  
    sm      1562 Mon Feb 16 15:56:48 PST 2004 org/jdom/JDOMFactory.class  
    sm      3064 Mon Feb 16 15:56:48 PST 2004 org/jdom/Namespace.class  
    sm      8558 Mon Feb 16 15:56:50 PST 2004 org/jdom/output/DOMOutputter.class  
    sm       155 Mon Feb 16 15:56:50 PST 2004 org/jdom/output/EscapeStrategy.class  
    sm      2250 Mon Feb 16 15:56:50 PST 2004 org/jdom/output/Format$DefaultEscapeStrategy.class  
    sm       803 Mon Feb 16 15:56:50 PST 2004 org/jdom/output/Format$TextMode.class  
    sm      4164 Mon Feb 16 15:56:50 PST 2004 org/jdom/output/Format.class  
    sm       923 Mon Feb 16 15:56:50 PST 2004 org/jdom/output/JDOMLocator.class  
    sm      2038 Mon Feb 16 15:56:50 PST 2004 org/jdom/output/NamespaceStack.class  
    sm     17766 Mon Feb 16 15:56:50 PST 2004 org/jdom/output/SAXOutputter.class  
    sm       548 Mon Feb 16 15:56:50 PST 2004 org/jdom/output/XMLOutputter$NamespaceStack.class  
    sm     21443 Mon Feb 16 15:56:50 PST 2004 org/jdom/output/XMLOutputter.class  
    sm      1049 Mon Feb 16 15:56:48 PST 2004 org/jdom/Parent.class  
    sm      5930 Mon Feb 16 15:56:48 PST 2004 org/jdom/ProcessingInstruction.class  
    sm      2521 Mon Feb 16 15:56:48 PST 2004 org/jdom/Text.class  
    sm      3571 Mon Feb 16 15:56:50 PST 2004 org/jdom/transform/JDOMResult$DocumentBuilder.class  
    sm      1320 Mon Feb 16 15:56:50 PST 2004 org/jdom/transform/JDOMResult$FragmentHandler.class  
    sm      3241 Mon Feb 16 15:56:50 PST 2004 org/jdom/transform/JDOMResult.class  
    sm      1454 Mon Feb 16 15:56:50 PST 2004 org/jdom/transform/JDOMSource$DocumentReader.class  
    sm      1514 Mon Feb 16 15:56:50 PST 2004 org/jdom/transform/JDOMSource$JDOMInputSource.class  
    sm      2713 Mon Feb 16 15:56:50 PST 2004 org/jdom/transform/JDOMSource.class  
    sm      2969 Mon Feb 16 15:56:50 PST 2004 org/jdom/transform/XSLTransformer.class  
    sm       856 Mon Feb 16 15:56:50 PST 2004 org/jdom/transform/XSLTransformException.class  
    sm     15975 Mon Feb 16 15:56:50 PST 2004 org/jdom/Verifier.class  
    sm      1549 Mon Feb 16 15:56:50 PST 2004 org/jdom/xpath/JaxenXPath$NSContext.class  
    sm      4040 Mon Feb 16 15:56:50 PST 2004 org/jdom/xpath/JaxenXPath.class  
    sm      1109 Mon Feb 16 15:56:50 PST 2004 org/jdom/xpath/XPath$XPathString.class  
    sm      4437 Mon Feb 16 15:56:50 PST 2004 org/jdom/xpath/XPath.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.
         Warning:
      This jar contains unsigned entries which have not been integrity-checked.
      This jar contains entries whose signer certificate has expired.
      This jar contains signatures that does not include a timestamp. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2009-11-07) or after any future revocation date.

1 个答案:

答案 0 :(得分:2)

您的jar已使用无效签名进行签名。

你必须取消对罐子的签名并自行辞职。

如果您使用的是{{1}},则会an unsign option