• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JWS Download Error

 
soumya ravindranath
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic