🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #1432

Re: Java Web Start Could not Load Resource

#1432
From: Kevin Dean
Date: Sat, 15 Nov 2003 01:50
81 lines
3722 bytes
First of all, move the JAR file to the lib subdirectory of the application,
not the WEB-INF/lib subdirectory.

Secondly, put a trailing slash after the codebase.

Finally, see if you can download the file directly through IE by putting:

http://localhost:8080/myjnlp/app/lib/MyIE.jar

-- 
Check out our latest white papers at
http://www.datadevelopment.com/papers/index.html

BladeNET Scores With Borland Enterprise Tools
Team Development with JBuilder and Borland Enterprise Server

Dolphin Data Development Ltd.
http://www.datadevelopment.com/

"Chris" <zerol@263.net> wrote in message
news:3fa93eaa$1@newsgroups.borland.com...
> Hi, I am learning Java Web Start , following is my Hello World
application,
> when JWS downloaing the MyIE.jar , it give me Exception :
>
> "Exception: java.io.IOException: HTTP response 404 : LaunchDesc: null ]"
> Could anybody give me some points?
>
> (It seemed there is not a group "Java Web Start" here ,so I post this
> to .java.swing  .Please forgive me .)
>
> ---------------------------------------------------in the Tomcat's
> server.xml
>
> <Host name="localhost" debug="0" appBase="f:\myjnlp\app"
unpackWARs="true">
>
>
> -----------------------Dir app's structure
> app-
>     + images
>     + WEB-INF
>         |
>         +lib
>           +MyIE.jar
> ----------------------------------------------the JNLP file for MyIE.jar
>
> <?xml version="1.0" encoding="UTF-8"?>
> <jnlp codebase="http://localhost:8080/myjnlp/app">
>
> <information>
> <title>MyIE</title>
> <vendor>RookieSoft Corporation</vendor>
> <description>MyIE just demo how to program with jnlp.</description>
> <homepage href="http://localhost:8080/myjnlp/app/index.html" />
>
> <offline-allowed/>
> </information>
>
> <resources>
> <j2se version="1.2+"/>
> <jar href="lib/MyIE.jar"/>
> </resources>
> <application-desc main-class="MyIE"/>
> </jnlp>
> -------------------------------------------------------Exception by JWS
>
> JNLPException[category: downlaod 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.getDownloadSize(Unknown Source)
>  at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
>  at com.sun.javaws.LaunchDownload.downloadEagerorAll(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)
>
>
>
Technical Details
Message-ID: <3fb5867b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!c03.atl99!news.webusenet.com!news02.tsnz.net!newsfeed01.tsnz.net!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3fa93eaa$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,e44329243e4de213
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2003-11-14 18:00:27 PST
From: "Kevin Dean" <NkOdSePaAnM@datadevelopment.com>
Newsgroups: borland.public.jbuilder.java.swing
References: <3fa93eaa$1@newsgroups.borland.com>
Subject: Re: Java Web Start Could not Load Resource
Date: Fri, 14 Nov 2003 20:50:30 -0500
Lines: 83
Organization: Dolphin Data Development Ltd.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 24.57.150.243
Message-ID: <3fb5867b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1068861051 24.57.150.243 (14 Nov 2003 17:50:51 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!c03.atl99!news.webusenet.com!news02.tsnz.net!newsfeed01.tsnz.net!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail