Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

JNLP syntax error?



Hello list,

I am starting the discovery phase of JNLP to deploy a simple app.
I managed to add to my Apache server the fact it recognized jnlp files.
I created a simple jnlp file to launch a jar file.
Unfortunately, Java Webstart complains about my jnlp file not having the application-desc tag when actually it does:

<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for TBSwingTest Application -->
<jnlp spec="1.0+" codebase="http://cih-a009.hcuge.ch/tb"; href="TBSwingTest.jnlp">
<information>
<title>Tableau Blanc</title>
<vendor>HUG</vendor>
<homepage href="help.html"/>
<description>Dimonstration du tableau blanc des urgences</description>
<description kind="short">Une dimo factice de l'ergonomie d'un tableau synoptique de patients</description>
<icon href="TBIcon.jpg"/>
<icon kind="splash" href="TBSplash.jpg"/>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.4+"/>
<jar href="TBSwingTest.jar"/>
</resources>
<application-desc/>
</jnlp>

The error message I get is:

An error occurred while launching/running the application.

Category: Launch File Error

The following required field is missing from the launch file: <jnlp>(<application-desc>|<applet-desc>|<installer-desc>|<component-desc>)

With the exception:

MissingFieldException[ The following required field is missing from the launch file: <jnlp>(<application-desc>|<applet-desc>|<installer-desc>|<component-desc>)]
at com.sun.javaws.jnl.XMLFormat.parse(XMLFormat.java:90)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(LaunchDescFactory.java:49)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(LaunchDescFactory.java:61)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(LaunchDescFactory.java:111)
at com.sun.javaws.Main.main(Main.java:167)

How come it tells me that since I DO have that tag?

Thanks,

Alex
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.