karakun / OpenWebStart

Run Web Start based applications after the release of Java 11
https://openwebstart.com
Other
425 stars 46 forks source link

Facing issue while launching the jnlp applications using open web start #518

Open Chetan3264 opened 2 years ago

Chetan3264 commented 2 years ago

Trying open jnlp file using open web start and following error:

Error: Root element is not a jnlp element at the initialization of the application

Used java version - Oracle 1.8

sclassen commented 2 years ago

Can you please provide the JNLP file for us to help

Chetan3264 commented 2 years ago
<?xml version="1.0" encoding="utf-8"?> 
<jnlp codebase="https://abc.net">
  <information>
    <title>Sample</title>
    <vendor>Demo</vendor>
    <icon kind="default" href="desktop/images/m.png" />
    <icon kind="splash" href="desktop/images/m_160.png" />
  </information>
    <security>
        <all-permissions />
    </security>
    <resources>

    <j2se version="1.8" initial-heap-size="64m" max-heap-size="512m" java-vm-args="-XX:MaxPermSize=120m"/>

        <jar href="descor/Sample.jar" main="true" />

        <extension href="desmls/cormls_nbm.jnlp?LocaleValue=en-US" />
        <extension href="desadg/coradg_nbm.jnlp?LocaleValue=en-US" />
        <extension href="monttc/monttc_nbm.jnlp?LocaleValue=en-US" />
        <extension href="desktop/uimodules_nbm_module.jnlp?extension=nbm_module&amp;user=myuser" />

        <property name="jnlp.defran.build" value="22.0.1.xxx" />
        <property name="jnlp.defran.build.Permission" value="22.0.2.yy" />
        <property name="jnlp.LtpaToken2" value="CS3hXaO5MAsXKIcoMw7jusYAY9UUFqK/2iL/+C6cv59DPtQ6CRyEzBVsVm4zR7hEDn6UZ8s+lUFhHh344Gi5rt40g16h4uYSKuxuZ/wuAT221ptldvkjQ4MSk11h71FKu0Cfiz7jQY5MxddQPRUp2bqasz4vsH2LAU8/qvi/SCI4+c8X6SHmJVCTNjVDwrULO9eWADziXL5JVGaS++AF1zs5kk4M1IIlv4nhBX4qQ6TU1rSFPxovnNyF5Vdtia6P6eojuG+nlT1Sr7MkqS78WUvAMve+GYgDq0src4DtJqCxO+PVN7BOeE5e3uoSkfY4HbZB2oxMImxlj9QT8GwXvAJHKBXPkdoVyS3/aolU4UZgC/IUOYSqJ3lOZea5X6cucPBN3L/0qNBTwOxdMr9gyTqcLNXlbLCIhEJI/VyVrZDvMsLABf5xdZT4GTvPYXmXUWixJWIWbComtoCEGkkd8R7ql4l3FXIa6t5cbEOrWk7ler/muO2zq0sH6iqVpUwqp8Y5eXNWNSVVNLXZBCwakEXIyhqtf3Rljx0qtX2P8QjCA7dCvDvmsNmLSmIrYu1ouZ6M0XS0IX1CcP5CaRfbwDD8hQCIEcGnqEI4bo5NsEkpQsaKdhc5gMy7AfcWFKVjzpvXhyceFQHOnWa5Bmgk+Ap76tvI8hLTXaXo44=" />
        <property name="jnlp.defran.build.FM_Controller" value="20.0.0.7" />
        <property name="jnlp.defran.build.Rich_Client_Interface" value="22.0.1.592" />
        <property name="jnlp.defran.JSESSIONID" value="0001VsrpM3NhOmTP4OzGLYFMblw:6h1EHpQe:sLzYqHfs:gqIeGViw:YKUbYCWb" />
        <property name="jnlp.defran.netbeans.apphost" value="abc.net" />
        <property name="jnlp.defran.properties.url" value="https://abc.net:10443/desktop/system_properties.jnlp?user=Myuser&amp;type=properties" />
        <property name="jnlp.defran.TLS_For_ExternalCommunication" value="TLSv1.2" />
  </resources>
  <application-desc main-class="com.sample.ABC">
  <argument>--laf</argument>
  <argument>com.sample.NetLookAndFeel</argument>
  <argument>--branding</argument>
  <argument>oes_na</argument>
  <argument>--locale</argument>
  <argument>en:US</argument>
  </application-desc>  
</jnlp>
Chetan3264 commented 2 years ago

Sample.jar is the jar which contains main method when execute the jnlp file.

sclassen commented 2 years ago

The main JNLP looks OK. Maybe one of the extension is to blaim. Can you control that all of them are valid xml and valid JNLP

Chetan3264 commented 2 years ago

Xml file is valid but why then root element is not a jnlp element. What is root element for jnlp file. Why it is coming with Open web start. If i try to open with Oracle Java then it works fine.