Weasis default viewer.jnlp Template

597 views
Skip to first unread message

Luis Silva

unread,
Jul 20, 2014, 7:58:00 AM7/20/14
to dcm...@googlegroups.com
Hi there,

I have weasis installed and I would like to view the default template created by viewer.jnlp and change some parameters.

Although I could not found it on server is generated on moment or is there a file created with these content ?

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jnlp PUBLIC "-//Sun Microsystems, Inc//DTD JNLP Descriptor 6.0//EN" "http://java.sun.com/dtd/JNLP-6.0.dtd">
  <jnlp spec="1.6+" version="1.0.7" codebase="http://localhost:8080/weasis" href="">
    <information>
      <title>Weasis</title>
      <vendor>H&#244;pitaux Universitaires de Gen&#232;ve (HUG)</vendor>
      <homepage href="docs/help.html"/>
      <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" />
      <!-- Weasis launcher -->
      <jar href="weasis-launcher.jar" main="true" />
      <!-- OSGI Felix framework -->
      <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="http://localhost:8080/weasis/conf/config.properties" />
      <!-- Required parameter. Define the code base of Weasis for the JNLP -->
      <property name="weasis.codebase.url" value="http://localhost:8080/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="http://localhost:8080/weasis-i18n" />
    </resources>
    <!-- Main class -->
    <application-desc main-class="org.weasis.launcher.WebstartLauncher">
      <!-- Example for opening dicom files from remote xml file -->
      <argument>$dicom:get -w http://localhost:8080/dcm4chee-web/wadoQueries/wado_query3888637380.xml.gz</argument>
      <!-- Example for opening dicom files from local foler -->
      <argument>$dicom:get -l "/home/Images/MRIX LUMBAR/"</argument>
      <!-- Example for opening dicom files by embedding the xml file encoded in gzip and then in base64, must be in one line without space at the beginning  -->
      <argument>
$dicom:get -i "H4sIAAAAAAAAALVV7Y+aMBz+vr+i6XdLXwDBHHdxpy4mvgX0dvtkOqnaBOGO1qn//RUQnW5uy3JHCC2/1+d5Wsrdw36TgB8iVzJLA0gQhkCkiyyW6SqAW71seBA83H+62/E4m79uRX4AJiNVAYBrrV9alrXb7dBOcCUVyvKVtVcxrEJaeyWDiyhWRlCMifU8HESLtdjwhkyV5ulCQFD0mIWDU06SLXiyzpRuedjDVuGGIBevW5mLcZocovGkf0ye9TsBXPJEmTI8jqU2dFKeTHjON0IbegGEwNCYcC1FqsFxLLIapMmID2vTyCQEsD0aj/rD8cn6WeZ63eHauIjvedjGzskXiX0Ae2X5SG/jAyifF8gIYsh2kdvEjucjQhDxXMqQgzByPNtDFBNibo8QhzLbd7Bnw6pMR6hFLl90uTyP3fCp/9gegOFsMO33wvawW4eV0OoyR+NUFlRIYbURLq+jp8DEbM/2me+YTqFYijw3Sz5ZH5RcSJ5WKnRCBJ4rYiKXQoFq+FdqLnbcMzUzoTYltFlQK+tccItm4VP3W+0abTffRW6qYwLBMIt5IvUhgMOwRFMDANc74CYYipF5+QOiusypMQSW6WRVcP5bAXbZz3YcRqpl+FUBMaVf59Oo24jaXxrXQlBM31WIm8A+RgjHd/HP/VzGmHNbCFIKMVd8da0De18dbuP6oA1xtQGbZh0oY/S3OhT7odfrNqZh+1oG+2O/izOsv8pglQdKMTkeh8X0/Le4fwN7IF3jYgYAAA=="
      </argument>
    </application-desc>
  </jnlp>

Nicolas Roduit

unread,
Jul 21, 2014, 2:25:54 AM7/21/14
to
To have your custom jnlp, you need to follow the installation instructions (add weasis-jnlp.xml).

The jnlp that you post is obsolete, it doesn't match with the new Java Web Start security restrictions. 
Reply all
Reply to author
Forward
0 new messages