3
我想讓我的JNLP與Java 8一起工作。我可以成功構建,但是當我嘗試啓動時,出現下面的錯誤。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.
你可以嘗試刪除java控制面板上臨時文件夾中的所有文件,然後嘗試再次運行它? –
你從哪裏得到罐子?您可能需要取消簽名並自行辭職。如果您使用的是'webstart-maven-plugin',它有[unsign option](http://www.mojohaus.org/webstart/webstart-maven-plugin/jnlp-inline-mojo.html#unsignAlreadySignedJars)。 –
@DidierL,謝謝你指點我在正確的方向。我以爲我在使用未簽名的jar版本並在構建期間對其進行簽名,但顯然某處某處指向已簽名的版本。我將其與未簽名的交換出來,現在可以向前移動(到我的下一個錯誤...)。如果你想寫這個答案,我會接受。 – andreamc