aspose file tools*
The moose likes JNLP and Web Start and the fly likes JNLP ,JWS Problem Unable to download Jar files(Tocat webserver) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "JNLP ,JWS Problem Unable to download Jar files(Tocat webserver)" Watch "JNLP ,JWS Problem Unable to download Jar files(Tocat webserver)" New topic
Author

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

rajamraju chiluvuri
Greenhorn

Joined: Nov 15, 2004
Posts: 1
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 ]

Thanks and regards<br />Rajamraju
Cristian Negresco
Ranch Hand

Joined: Sep 15, 2001
Posts: 182
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNLP ,JWS Problem Unable to download Jar files(Tocat webserver)
 
Similar Threads
Is It bug in web start?
Unable to launch the application
Launch File Error
Launch Exception encountered in Java Web Start
missing from the launch file: jnlp