Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Anyonme got version-based download working ?

843802Jun 10 2002 — edited Jun 17 2002
I've scanned all the messages here as well as on vamp, but nowhere do I see an anwser on how to get versioning working.

My test app is a straight forward one.
Below are the jnlp and version.xml.

As long as the attribute [version="1.1"] is included I get the;

Missing version field in response from server when accessing resource: (http://localhost/Webstart/app/uitrij.jar, 1.1)

error. When I strip only that attribute the app loads just fine.
The excpetion that results in the above mentioned error is also listed below.

Anyone got any ideas ?

Anne.

--
launch.jnlp:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp codebase="http://localhost/Webstart/app/" href="launch.jnlp">
<information>
<title>VSP Uitrij Example 1</title>
<vendor>Finalist IT</vendor>
<description>Example of Webstart uitrij app in war</description>
</information>
<resources>
<j2se version="1.2+"/>
<jar href="uitrij.jar" version="1.1"/>
</resources>
<application-desc/>
</jnlp>

version.xml:
<jnlp-versions>
<resource>
<pattern>
<name>uitrij.jar</name>
<version-id>1.1</version-id>
</pattern>
<file>uitrij.jar</file>
</resource>
</jnlp-versions>

Java Webstart Download Error -Exception tab:
JNLPException[category: Download Error : Exception: null : LaunchDesc: null ]
at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
at com.sun.javaws.cache.DownloadProtocol.getDownloadSize(Unknown Source)
at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
at com.sun.javaws.Launcher.downloadResources(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Thread.java:479)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 7 2020
Added on Jun 10 2002
12 comments
705 views