使用JNLP下载已签名的jar时出现java.io.IOException

时间:2014-08-15 18:46:37

标签: java-web-start jnlp ioexception

我使用从我的Websphere Application服务器导出的jks签署了我的app jar。我收到了以下错误

java.io.IOException:无法找到URL的缓存资源:http://aaa.com/RAISAISLogonWeb/LogonApp.jar     at com.sun.deploy.cache.Cache.getCachedResourceFilePath(Unknown Source)     at com.sun.deploy.cache.ResourceProviderImpl.getCachedResourceFilePath(Unknown Source)     at com.sun.javaws.security.JNLPSignedResourcesHelper.getSignedJNLPBits(Unknown Source)     at com.sun.javaws.security.JNLPSignedResourcesHelper.getSignedJNLPFile(Unknown Source)     at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedLaunchDescHelper(Unknown Source)     at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedLaunchDesc(Unknown Source)     at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedLaunchDesc(Unknown Source)     at com.sun.javaws.Launcher.prepareResources(Unknown Source)     at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)     在com.sun.javaws.Launcher.prepareToLaunch(未知来源)     在com.sun.javaws.Launcher.prepareToLaunch(未知来源)     在com.sun.javaws.Launcher.launch(未知来源)     在com.sun.javaws.Main.launchApp(未知来源)     at com.sun.javaws.Main.continueInSecureThread(Unknown Source)     在com.sun.javaws.Main.access $ 000(未知来源)     在com.sun.javaws.Main $ 1.run(未知来源)     在java.lang.Thread.run(未知来源)

这是我的jnlp

<jnlp spec="1.0+" codebase="http://camdv1lwsl01.cammis.local/RAISAISLogonWeb/">
  <information>
    <title>Logon App</title>
    <vendor>aaa.com</vendor>
  </information>
  <resources>
    <property name="jnlp.publish-url" value="http://aaa.com/LogonWeb/"/>
    <j2se version="1.7*" java-vm-args="-Xmx32m" max-heap-size="32m" href="http://java.com/en/download/index.jsp"/>
    <jar href="LogonApp.jar" main="true" download="eager"/>
  </resources>
  <application-desc name="Logon App" main-class="com.aaa.LogonApp">
    <argument>xkckdfdwfwffwff</argument>
  </application-desc>
  <security>
    <all-permissions/>
  </security>
</jnlp>

请帮我解决这个问题。 感谢

0 个答案:

没有答案