Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • 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 is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic