Hi guys!
I'm trying weasis.war 2.0, after load java return the error:
MissingFieldException[ O seguinte campo necessário não está no arquivo de acionamento: <jnlp>(<application-desc>|<applet-desc>|<installer-desc>|<component-desc>)]
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.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main.access$000(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
This is my configuration of weasis-jnlp.xml:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.6+" codebase="${weasis.base.url}/weasis">
<information>
<title>Weasis</title>
<vendor>Weasis Team</vendor>
<description>DICOM images viewer</description>
<description kind="short">An application to visualize and analyze
DICOM images.</description>
<description kind="one-line">DICOM images viewer</description>
<description kind="tooltip">Weasis</description>
<icon href="images/logo-button.png" kind="default" />
<icon href="images/about.png" kind="splash" />
<shortcut online="false">
<desktop />
<menu submenu="Weasis" />
</shortcut>
</information>
<security>
<all-permissions />
</security>
<resources>
<!-- Requires Java SE 6 update 10 release for jnlp extension without codebase (substance.jnlp) -->
<j2se version="1.6.0_10+" href="
http://java.sun.com/products/autodl/j2se" initial-heap-size="128m" max-heap-size="512m" />
<j2se version="1.6.0_10+" initial-heap-size="128m" max-heap-size="512m" />
<jar href="weasis-launcher.jar" main="true" />
<jar href="felix.jar" />
<!-- Optional library (Substance Look and feel, only since version 1.0.8). Requires the new Java Plug-in introduced
in the Java SE 6 update 10 release.For previous JRE 6, substance.jnlp needs a static codebase URL -->
<extension href="substance.jnlp"/>
<!--
Required parameter. Define the location of config.properties (the
OSGI configuration and the list of plug-ins to install/start)
-->
<property name="felix.config.properties" value="${weasis.base.url}/weasis/conf/config.properties" />
<!-- Required parameter. Define the code base of Weasis for the JNLP-->
<property name="weasis.codebase.url" value="${weasis.base.url}/weasis" />
<!-- Required parameter. Start OSGI console on the port 17179-->
<property name="gosh.args" value="-sc telnetd -p 17179 start" />
<!-- Optional parameter. Allows to have the Weasis menu bar in the top bar on Mac OS X (works only with the
native Aqua look and feel) -->
<property name="apple.laf.useScreenMenuBar" value="true" />
<!-- Optional parameter. Allows to get plug-ins translations -->
<property name="weasis.i18n" value="${weasis.base.url}/weasis-i18n" />
</resources>
</jnlp>
What is it missing in jnpl file? is there some new version of this file?
Thanks
Marco