Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unknownHost jnlp

 
Bob Rubin
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm a begginer just learning to use Web Start so before creating a web-page to link to my jlnp i tried to execute it standalone on my computer. i got a run-time exception

JNLP: authorize.jnlp
JAR: authorize.jar
main-class: AuthorizeClient1 (specified in both manifest aand jnlp
authorized all permission (signed the jar)

the JNLP, JAR are on c:\serverDB8d

here is my JNLP (which is cannibalized from a sample) followed by my dump.

<?xml version="1.0" encoding="utf-8"?>
<jnlp
<!-- The JNLP version this file is compatible with -->
spec="1.0+"

<!-- The codebase of the application. Each relative
URL in this file is relative to this URL -->
codebase="http://../serverDB8d"

<!-- The relative URL of this file -->
href="Authorize.jnlp">

<information>
<!-- The title of the application -->
<title>Authorize</title>

<!-- The vendor of the application -->
<vendor>Robert Rubin</vendor>

<!-- A web page containing more information about the
application. This URL will be displayed in
the JAWS Application Manager -->
<homepage href="http://www.rjrubin.com/"/>

<!-- Description elements are displayed in various places
in the Application Manager -->
<description>Authorize</description>
<description kind="short">
A *very* tiny draw program</description>



<!-- Declares that the application can run without
access to the server it was downloaded from -->
<offline-allowed/>

</information>

<security>
<!-- Request that the application be given full
access to the local (executing) machine,
as if it were a regular Java application.
Requires that all JAR files be signed
by a trusted party -->

<all-permissions/>
</security>

<resources>
<!-- Specify the versions of the Java Runtime Environment
(JRE) that are supported by the application.
Multiple entries of this kind are allowed, in which
case they are considered to be in order of preference -->
<j2se version="1.5+"/>

<!-- Specify the relative URL of a JAR file containing
code or data. Specifying lazy tells the JAWS system
that the file does not need to be downloaded before
the application can be run -->
<jar href="Authorize.jar"/>

</resources>

<application-desc main-class="AuthorizeClient1"/>
</jnlp>

JNLPException[category: Download Error : Exception: java.net.UnknownHostException: .. : 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)


An error occurred while launching/running the application.

Title: Authorize
Vendor: Robert Rubin
Category: Download Error

Unable to load resource: http://../serverDB8d/Authorize.jnlp

[ June 03, 2005: Message edited by: Bob Rubin ]

[ June 04, 2005: Message edited by: Bob Rubin ]

[ June 04, 2005: Message edited by: Bob Rubin ]
[ June 04, 2005: Message edited by: Bob Rubin ]
 
Bob Rubin
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
think i found source of problem - my codebase URL was invalid -- by moving serverDB8d into my base cirectory for rjrubin.comh -- eventually i'll figure out relative URL addressing

i'm now ready to test securing the web page with a log on
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic