Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
rajamraju chiluvuri
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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 ]
 
Cristian Negresco
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic