I simply cant find the mistake. Any advise is appreciated. I got this working previously without the security element. Removed the securiy element, restart
tomcat remove webstart cache i still get the same exception.
tried changing the codebase but still get the same exception after tomcat restart.
codebase="http://localhost:8080/war/app"
or
codebase="$$codebase"
tried the unofficial guide in JNLP -
http://www.vamphq.com/jwsfaqp.html but to no avail
=======================================================================
Q: How can I find out why Web Start fails to parse my JNLP startup file?
=======================================================================
If Web Start chokes on your JNLP startup file (e.g. "Launch File Error: The following required field is missing from the launch file: <jnlp>"), and your app won't show, turn on the magic TraceXMLParsing switch, to find out why me. Follow these steps:
go into the
Java tab in the app manager's preference panel and change javaw.exe to java.exe (dropping the trailing w tells the Java runtime to pop up a console window that shows every message sent to stdout)
go to the directory where javaws itself hangs out (on Windope usually at C:\Program Files\Java Web Start)
create a file called .javawsrc containing the line: TraceXMLParsing=true
run javaws from the shell and pass in your JNLP file's URL as an argument (e.g. javaws
http://www.jenomics.de/vamp/hazel.jnlp) watch the console window as the story unfolds (scrolls by) and Web Start chokes when swallowing (parsing) your JNLP startup file.
=================================================================
cannot create a file .javawsrc instead i created jnlp-scorpio.javawsrc at web start directory where javaws reside. nothing happens.
=====================================================
Exception
=====================================================
MissingFieldException[ The following required field is missing from the launch file: <jnlp>]
at com.sun.javaws.jnl.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)
=====================================================
JNLP
=====================================================
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://localhost:8080/war/app">
<information>
<title>XXXX</title>
<vendor>XXXXXX</vendor>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.4+"/>
<jar href="scorpio-gui.jar" />
</resources>
<application-desc main-class="kbots.scorpio.perso.PersonalizationApp"/>
</jnlp>