Solved

Java Web Start - JNLP Problem

Posted on 2004-09-08
3
813 Views
Last Modified: 2010-05-18
I'm trying to load an application via Java Web Start & Apache 2.0.49.  When I follow the link to my JNLP file, I get an "Unable to load resource" message.  The application is being launched within a private subnet wich restricted access to the internet through a proxy server.  The web server resides within the private subnet so I don't believe that a firewall is the issue.  

The jnlp file and errors generated are below.

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

<!-- FMS JNLP File  -->

<jnlp

  spec="1.0+"

  codebase="http://fmssql/WebApp/FMS"

  href="FMS.jnlp">

  <information>

    <title>PROGRAM TITLE</title>

    <vendor>My Name</vendor>

    <homepage href="http://fmssql"/>

  </information>

  <security>

    <all-permissions/>

  </security>

  <resources>

    <j2se version="1.2+"/>

    <jar href="FMSJWS.jar"/>

  </resources>

  <application-desc main-class="MainMenu">

    <argument>arg1</argument>

    <argument>arg2</argument>

  </application-desc>

</jnlp>



JNLPException[category: Download Error : Exception: java.io.IOException: HTTP response 404 : LaunchDesc: null ]

      at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)

      at com.sun.javaws.cache.DownloadProtocol.isLaunchFileUpdateAvailable(Unknown Source)

      at com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(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(Unknown Source)




java.io.IOException: HTTP response 404

      at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)

      at com.sun.javaws.cache.DownloadProtocol.isLaunchFileUpdateAvailable(Unknown Source)

      at com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(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(Unknown Source)


Thanks,
David
0
Comment
Question by:lomidien
  • 2
3 Comments
 

Author Comment

by:lomidien
ID: 12009652
I'm really stuck here.  Any ideas?
0
 
LVL 7

Accepted Solution

by:
lhankins earned 500 total points
ID: 12010587
It looks like the underlying error is a 404 (page not found).   Check the following attribute :

  codebase="http://fmssql/WebApp/FMS"

This should be the path up to your webapp's context.   For example, if I have a webapp named mywebapp on a server named myserver, this should be :

  codebase="http://myserver/mywebapp"

0
 

Author Comment

by:lomidien
ID: 12011754
Fixed, turned out being a problem with the proxy configuration.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
maven module vs maven project 3 72
Notify sent to other threads in Java 9 41
passing enum to a method 4 34
activeMQ Queue Messages Enqueued and Messages Dequeued 1 27
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question