Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

jnlp launch file error

 
Ranch Hand
Posts: 179
Mac Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi i am trying to add an application to my web page and was using jnlp. I am getting the following error


An error occurred while launching/running the application.

Category: Launch File Error

The following required field is missing from the launch file: <jnlp>



the exception that i am get


MissingFieldException[ The following required field is missing from the launch file: <jnlp>]
at com.sun.javaws.jnl.xml.XMLFormat.parse(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.Main.main(Unknown Source)


And my jnlp file is



I searched a lot for it but couldnot find a solution to this error.

thanks ranchers for your help..

[ March 26, 2008: Message edited by: Ravikanth kolli ]
[ March 26, 2008: Message edited by: Ravikanth kolli ]
 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. If you must use a local file system as the JNLP host, use the file:// prefix so that the file URL can properly be decoded.

2. When I correct #1, I run into this issue:


MissingFieldException[ The following required field is missing from the launch file: <jnlp><information><vendor>]



So you must specify a vendor code.
 
Ravikanth kolli
Ranch Hand
Posts: 179
Mac Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi daniel,

I added the file:// tag in the codebase and also added the vendor information. It gave me the following error

An error occurred while launching/running the application.

Title: Opt
Vendor: Ravikanth
Category: Download Error

Unable to load resource: file://C:/codebase/opt.jnlp



Exception


JNLPException[category: Download Error : Exception: java.net.UnknownHostException: C : LaunchDesc: null ]
at com.sun.javaws.cache.DownloadProtocol$RetrieveAction.actionDownload(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)




i am getting the previous error when i try to run it through the web. Can you tell me what changes should i be doing for it to work?

Thanks a lot..
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ravikanth kolli,
As per my knowledge everything is ok in your jnlp file except codebase,it is the most important tag in the jnlp file,when you depoly your jnlp application on the server you have to change your codebase tag like this

<jnlp spec="1.0+" codebase="http://Ipaddress ortno on which server running/Root folder name" href="launch.jnlp">

For ex:

<jnlp spec="1.0+" codebase="http://192.168.1.125:8080/EventProj"
href="launch.jnlp">


Just try like this.

I hope you will get now.
[ March 27, 2008: Message edited by: Satish Atyam ]
 
Ravikanth kolli
Ranch Hand
Posts: 179
Mac Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I got it guys thanks a lot..
 
Squanch that. And squanch this tiny ad:
The trailboss has a kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic