0 Replies Latest reply on Apr 11, 2014 9:17 AM by EdChouaffe

    Leveraging the Version Download Protocol not working

    EdChouaffe

      Hi guys,

      I did follow the steps described here: http://docs.oracle.com/javase/tutorial/deployment/deploymentInDepth/avoidingUnnecessaryUpdateChecks.html

      , and I am frustrated a lot as it doesn't work.

       

      Here my .jnlp file:

      {code}

      <?xml version="1.0" encoding="UTF-8"?>

      <jnlp spec="1.0+" codebase="http://localhost:80/jnlp/"  href="ed.jnlp">

      <information>

      <title>ACD GUI</title>

      <icon href="grafik/ed_logo.png"/>

      <icon kind="splash" href="grafik/ed_logo.png"/>

      <vendor>Me</vendor>

      <homepage href="http://www.in-telegence.net"/>

      </information>

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

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

      <application-desc main-class="sample.jnlp.Controller"/>

      <resources>

      <j2se version="1.6+" initial-heap-size="256m" max-heap-size="256m" />

      <jar href="ed.jar"  version="1.0" />

      <property name="jnlp.versionEnabled" value="true"/>

      </resources>

      </jnlp>

      {code}

       

      and the web.xml file as follows:

      {code}

      <web-app>

       

        <servlet>

        <servlet-name>JnlpDownloadServlet</servlet-name>

        <servlet-class>jnlp.sample.servlet.JnlpDownloadServlet</servlet-class>

        </servlet>

       

        <servlet-mapping>

        <servlet-name>JnlpDownloadServlet</servlet-name>

        <url-pattern>*.jnlp</url-pattern>

        </servlet-mapping>

       

        <servlet-mapping>

        <servlet-name>JnlpDownloadServlet</servlet-name>

        <url-pattern>*.jar</url-pattern>

        </servlet-mapping>

       

      </web-app>

      {code}

       

      I always get the com.sun.deploy.net.FailedDownloadException: Unable to load resource: (http://localhost:80/jnlp/ed.jar?version-id=1.0, 1.0).

      The .jar file is named ed_V1.0.jar.

       

      When I use the version.xml file alternative, I am able to start the application. However the version check doesn't apply.

       

      I would really appreciate any help.

       

      Thanks.

       

      Edmond