Jar签名时未签名的Jar错误

时间:2013-02-26 06:03:43

标签: java java-web-start sign

请不要说这是另一个问题的重复,因为我花了一些时间来解决其他类似的问题,但我的问题是独一无二的。我正在尝试使用JNLP webstart运行jar,错误是:

 com.sun.deploy.net.JARSigningException: Found unsigned entry in resource: http://Stanley/A-Skul.jar
    at com.sun.javaws.security.SigningInfo.getCommonCodeSignersForJar(Unknown Source)
    at com.sun.javaws.security.SigningInfo.check(Unknown Source)
    at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResourcesHelper(Unknown Source)
    at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResources(Unknown Source)
    at com.sun.javaws.Launcher.prepareResources(Unknown Source)
    at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)
    at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
    at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
    at com.sun.javaws.Launcher.launch(Unknown Source)
    at com.sun.javaws.Main.launchApp(Unknown Source)
    at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
    at com.sun.javaws.Main.access$000(Unknown Source)
    at com.sun.javaws.Main$1.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

问题是我的Jar已签名并在谷歌搜索后发现我需要勾选启用我的本地计算机中的临时文件已经完成。问题仍然存在。我正在运行Java 1.7。这是我的JNLP文件:

<jnlp codebase="http://Stanley" href="launch.jnlp" spec="1.0+">
  <information>
    <title>A-Skul</title>
    <vendor>pc</vendor>
    <homepage href=""/>
    <description>A-Skul</description>
    <description kind="short">A-Skul</description>
    <icon href="Free bsd.png" kind="default"/>
  </information>
  <update check="always"/>
  <security>
    <all-permissions/>
  </security>
  <resources>
    <j2se version="1.7+"/>
    <jar href="A-Skul.jar" main="true"/>
    <jar href="lib/commons-io-1.4.jar"/>
    <jar href="lib/derby.jar"/>
    <jar href="lib/mail.jar"/>
    <jar href="lib/ojdbc14.jar"/>
    <jar href="lib/itext-2.0.1.jar'.jar'.jar"/>
    <jar href="lib/commons-lang-2.0.jar"/>
  </resources>
  <application-desc main-class="a.skul.ASkul"/>
</jnlp>

和我的控制台:

Java Web Start 10.10.2.18
Using JRE version 1.7.0_10-b18 Java HotSpot(TM) Client VM
User home directory = C:\Users\pc
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
m:   print memory usage
o:   trigger logging
p:   reload proxy configuration
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
0-5: set trace level to <n>
----------------------------------------------------
    Match: beginTraversal
Match: digest selected JREDesc: JREDesc[version 1.7+, heap=-1--1, args=null, href=null, sel=false, null, null], JREInfo: JREInfo for index 0:
    platform is: 1.7
    product is: 1.7.0_10
    location is: http://java.sun.com/products/autodl/j2se
    path is: C:\Program Files\Java\jre7\bin\javaw.exe
    args is: null
    native platform is: Windows, x86 [ x86, 32bit ]
    JavaFX runtime is: JavaFX 2.2.4 found at C:\Program Files\Java\jre7\
    enabled is: true
    registered is: true
    system is: true

    Match: ignoring maxHeap: -1
    Match: ignoring InitHeap: -1
    Match: digesting vmargs: null
    Match: digested vmargs: [JVMParameters: isSecure: true, args: ]
    Match: JVM args after accumulation: [JVMParameters: isSecure: true, args: ]
    Match: digest LaunchDesc: http://Stanley/launch.jnlp
    Match: digest properties: []
    Match: JVM args: [JVMParameters: isSecure: true, args: ]
    Match: endTraversal ..
    Match: JVM args final: 
    Match: Running JREInfo Version    match: 1.7.0.10 == 1.7.0.10
     Match: Running JVM args match: have:<>  satisfy want:<>
#### Java Web Start Error:
#### Found unsigned entry in resource: http://Stanley/A-Skul.jar

此Jar已签名,我已使用Netbeans编译它。任何遇到此错误的人都请帮忙。

0 个答案:

没有答案