This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
  • 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

JNLP ,JWS Problem Unable to download Jar files(Tocat webserver)

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I had a problem with jnlp and java webstart.
This is my code.

------------------------
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://<%=request.getServerName()%>/">
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.2+"/>
<%
if(useLiteLoader == true) {
out.println("<jar href=\"" + loader + "APP:" + "liteloader.jar" + "\"/>");

} else {

out.println("<jar href=\"" + loader + "APP:" + "spotgui.jar" + "\"/>");
}
%>
</resources>
<application-desc main-class="LiteLoader">

</application-desc>
</jnlp>
------------
When iam using the same thing in jrun webserver in windows 2000 it works fine.
When i use the same application with Unix on tomcat server.

iam using ssl with diiferent protocol.

Its giving Two Exceptions


--------------------
BadFieldException[ The field <jnlp>codebase has an invalid value: at

com.sun.javaws.jnl.xml.XMLUtils.getAttributeURL(Unknown Source)at com.sun.javaws.jnl.xml.XMLUtils.getAttributeURL(Unknown

Source)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)



JNLPException[category: Download Error : Exception: java.net.MalformedURLException: unknown protocol: https : 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
--------------------------

Can any one let me know whats the problem is.
IF i use the URL directly in the web broser it Downloads the jar file.

is it the problem with

Browser settings?
JNLP?
JWS?
OS?
TOMCAT ?
[ November 18, 2004: Message edited by: rajamraju chiluvuri ]
 
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Don't know the JWS version you are using but I remember that early versions of jws were not able to use https. You might check that. If I'm not much mistaken it was jws 1.2 .

Cristian
 
What? What, what, what? What what tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic