"Unable to load resource" when attempting to install using WebStart

Hi,

I have successfully launched an application using WebStart on the web server hosting the JNLP file.  However when I test it out on a users machine I get the following error messages in WebStart.  Any ideas?

Cheers,
Steve



An error occurred while launching/running the application.

Title: Gap Analysis Application
Vendor: Churchill China (UK) Ltd
Category: Download Error

Unable to load resource: http://localhost/jnlp/gapdataclient.jnlp




JNLPException[category: Download Error : Exception: java.net.ConnectException: Connection refused: connect : 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.net.ConnectException: Connection refused: connect
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(Unknown Source)
      at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
      at java.net.PlainSocketImpl.connect(Unknown Source)
      at java.net.Socket.connect(Unknown Source)
      at java.net.Socket.connect(Unknown Source)
      at sun.net.NetworkClient.doConnect(Unknown Source)
      at sun.net.www.http.HttpClient.openServer(Unknown Source)
      at sun.net.www.http.HttpClient.openServer(Unknown Source)
      at sun.net.www.http.HttpClient.<init>(Unknown Source)
      at sun.net.www.http.HttpClient.New(Unknown Source)
      at sun.net.www.http.HttpClient.New(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
      at com.sun.javaws.net.BasicNetworkLayer.doRequest(Unknown Source)
      at com.sun.javaws.net.BasicNetworkLayer.doHeadRequest(Unknown Source)
      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)
LVL 5
steve_bagnallAsked:
Who is Participating?
 
aozarovCommented:
<jnlp spec="1.5+" codebase="http://localhost ....
to
<jnlp spec="1.5+" codebase="http://your_ip_address_of_that_machine
0
 
CEHJCommented:
Are you hosting that resource locally for testing purposes? If so you need to be running a web server
0
 
aozarovCommented:
change localhost to your machine hostname.
The same machine name from that thread: http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_21398812.html
where  you have successfully launched an application
0
 
steve_bagnallAuthor Commented:
aozarov,

Yep of course!  Thanks :)
0
 
aozarovCommented:
:)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.