aspose file tools*
The moose likes JNLP and Web Start and the fly likes JWS Download Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "JWS Download Error" Watch "JWS Download Error" New topic
Author

JWS Download Error

soumya ravindranath
Ranch Hand

Joined: Jan 26, 2001
Posts: 300
Hi,

I didn't come up with any useful threads on search, so here I go.

I am trying the sample Notepad (under jdk1.5 sample) application using Java Web Start. This is my apache/htdocs/Notepad/notepad.jnlp



When I access the notepad.jnlp from local as in http://localhost:8080/Notepad/notepad.jnlp, the application gets launched perfect.
I tried from another machine on the net and I get the following error after the initial screen with the application name, on accessing http://myIP:8080/Notepad/notepad.jnlp


Resource could not be loaded:
http://myIP:8080/Notepad/notepad.jnlp

JNLPException[category: Download-Error : Exception: java.io.IOException : LaunchDesc: null ] at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source) at com.sun.javaws.cache.DownloadProtocol.getLaunchFile(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)

Wrapped Exception:

java.io.IOException at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at com.sun.javaws.net.BasicNetworkLayer.doRequest(Unknown Source) at com.sun.javaws.net.BasicNetworkLayer.doGetRequest(Unknown Source) at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source) at com.sun.javaws.cache.DownloadProtocol.getLaunchFile(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)Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://myIP:8080/Notepad/notepad.jnlp at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at java.net.HttpURLConnection.getResponseCode(Unknown Source) ... 10 more



I tried the same after signing the jar. The error remains the same.
The index.html in the same directory loads on the remote browser. I have also made the appropriate entry in apache's mime.types file.

Could someone help ?
thanks in advance,
Soumya.
Ed Ewing
Greenhorn

Joined: Aug 30, 2005
Posts: 29
Originally posted by soumya ravindranath:
This is my apache/htdocs/Notepad/notepad.jnlp




It might be possible that the href to java.sun.com is incorrect. As far as I can tell, that is not a valid URL. Simply remove that href and try again:



Note that this is just a guess. You seem to have already tried all the other suggestions I had.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JWS Download Error
 
Similar Threads
JNLPException ConnectException
what does this error mean??
JAWS behind authenticated proxies?
javax.jnlp
Unable to load resource: http://LH:8080/...