Java Webstart 间歇性 JAR 未更新 [英] Java Webstart intermittant JAR not updating

查看:43
本文介绍了Java Webstart 间歇性 JAR 未更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们使用 java Webstart 在我们的内部网上部署一个 java 应用程序.应用程序接收频繁的更新.在我们更新了网络服务器上的 JAR/WAR(时间戳已更改)后,用户有时会从他们的桌面图标启动应用程序,Java Webstart 将启动旧版本而不是下载新版本.

We use java Webstart to deploy a java application on our intranet. The application receives frequent updates. Once in awhile a user will launch the application from their desktop icon after we have updated the JARs / WAR on the webserver (timestamp changed) and Java Webstart will launch the old version instead of downloading a new one.

这是我们 JNLP 的粘贴,您可以看到离线允许已启用,但始终更新检查和策略始终.此外,下载标志是急切的.根据我的理解,这些选项应始终根据服务器上的时间戳检查缓存并下载 JAR 文件.

Here is a paste of our JNLP, as you can see offline-allowed is on, but update check always and policy always. Also, download flag is eager. From my understanding these options should always result in a check of cache against timestamp on server and a download of the JAR file.

我开始对 Webstart 感到沮丧!有没有人见过类似的问题?任何解决方案?我已经厌倦了每三次或五次更新手动清除他们的 webstart 缓存.

I'm starting to get frustrated with Webstart! Has anyone seen similiar problems? Any solutions? I'm getting sick of walking people through clearing their webstart cache manually every third or fifth update.

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE jnlp PUBLIC "-//Sun Microsystems, Inc//DTD JNLP Descriptor 6.0//EN" "http://java.sun.com/dtd/JNLP-6.0.dtd">
<jnlp spec="1.0+" codebase="$$codebase" href="$$name">
  <information>
    <title>TITLE</title>

    <vendor>VENDOR</vendor>

    <description>Our Utility Application</description>

    <description kind="short">Our Utility Application PRD</description>
    <icon href="images/util_icon.png" height="64" width="64"/>
    <offline-allowed/>
    <shortcut online="true">
      <desktop />
      <menu submenu="Utility Apps"/>
    </shortcut>
  </information>

  <security>
     <all-permissions />
  </security>

  <update check="always" policy="always" />

  <resources>
    <!-- requires 1.6+ -->
    <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se" java-vm-args="-ea" initial-heap-size="128m" max-heap-size="512m" />

    <!-- application code, download jar before we start. -->
    <jar href="OurUpdatedJarName.jar" main="true" download="eager" />

    <property name="configfile" value="updatedJarName.config" />
  </resources>

  <application-desc main-class="main.Client">
    <argument>-D</argument> 
  </application-desc>
</jnlp>

推荐答案

您可能已经解决了这个问题 - 但是 jnlp spec="1.0+" - 只有在 jnlp spec 6.0+ 之后才支持该元素.这可能是您更新失败的原因之一.

You might have solved the issue - But jnlp spec="1.0+" - The element is supported only after jnlp spec 6.0+. Probably thats is one of the reasons for your updates failing.

这篇关于Java Webstart 间歇性 JAR 未更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆