?
Solved

Java Web Start - JNLP Problem

Posted on 2004-09-08
3
Medium Priority
?
817 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Author Comment

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

Accepted Solution

by:
lhankins earned 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month12 days, 20 hours left to enroll

777 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