JNLPException[category: Download Error : Exception: java.io.IOException

Hi all,

if am trying to call my application from my from Remote system.. am getting Error:

My CodeBase:http://localhost:8080 href="mypirate.jnlp"

here am getting Error : if am accessing from Remote with in LAN

java.net.ConnectException: Connection refused: connect

i think that it's because of my Code base: then i changed my server name as my host (like this : http://dhana-2660:8080 href="mypirate.jnlp" here dhana-2660 is server name)

am getting Error:

An error occurred while launching/running the application.

Title: My Pirate!

Vendor: me

Category: Download Error

Unable to load resource: http://dhana-26630:8080/mypirate.jnlp

Launch tab

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

<jnlp codebase="http://dhana-2660:8080" href="mypirate.jnlp">

<information>

<title>My Pirate!</title>

<vendor>me</vendor>

<icon href="icon.png"/>

<icon href="splash.png" kind="splash"/>

</information>

<security>

<all-permission/>

</security>

<resources>

<j2se version="1.4+"/>

<jar href="myclasses.jar" main="true" download="eager"/>

</resources>

<application-desc main-class="Startup"/>

</jnlp>

Exception Tab:

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)

wrapper 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: 503 for URL: http://dhana-2660:8080/mypirate.jnlp

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)

at java.net.HttpURLConnection.getResponseCode(Unknown Source)

... 10 more

Pls. help me...

by

dhana

[3211 byte] By [Dhanasekarana] at [2007-10-2 19:04:26]
# 1

Hi all,

I have solve the problem..

i have changed 2 things:

1#

code Base: http://120.3.23.13:8080 href="mypirate.jnlp"

ip address of U'r Server like :120:3:23:13

2#

self certifIcate jarsign :

see this link : http://java.sun.com/j2se/1.4.2/docs/guide/jws/developersguide/development.html

if U have sign the Jar.. remove the signed jar ..

To remove signed Jar ..

i ) extract your jar file.

ii) delete U'r manifest file

then re-create u'r jar file and self certifiate jarsign

any query Reg. to this send the message...

by dhana

Dhanasekarana at 2007-7-13 20:43:45 > top of Java-index,Desktop,Deploying...