• 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 ,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
 
If I had asked people what they wanted, they would have said faster horses - Ford. Tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic