Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error whilst parsing JNLP launch file

Greg BlockJun 30 2016 — edited Aug 19 2016

Hi.

I am attempting to get a webstart application up and running in a 12c Release 1 database (12.1.0.2).

The Oracle WebLogic Server is 11g Release 1 (10.3.6).

The Oracle Forms and Reports version is 11g Release 2 (11.1.2.2.0).

I'm also using Java Version 8 Update 74 (build 1.8.0_74-b0)

When I reference an external (on the application server) jnlp file in my main jnlp file (to reference extra .jar files which have different certificates), and then run (I have a simple html page on my local machine which points to a local .jnlp file) I get the following error in a popup window:

ExitException[ 3]JNLParseException[ Could not parse launch file. Error at line 9.]

    at sun.plugin2.applet.JNLP2Manager.ensureAllJnlpFilesAreAvailable(Unknown Source)

    at sun.plugin2.applet.JNLP2Manager.prepareLaunchFile(Unknown Source)

    at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)

    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)

    at java.lang.Thread.run(Unknown Source)

And this error in the java console:

Ignored exception: ExitException[ 3]JNLParseException[ Could not parse launch file. Error at line 9.]

My main jnlp file is as follows:

<?xml version="1.0" encoding="utf-8"?> 

<jnlp spec="1.8+" codebase="http://x-xx-xxx-x.xxx.xx.xx:1234/forms/java/">

    <information>

        <title>Forms</title>

        <vendor>Form test</vendor>

    </information>

    <security>

        <all-permissions/>

    </security>

    <resources>

        <j2se version="1.8+"/>

        <jar href="frmall.jar"/>

        <jar href="frmwebutil.jar"/>

        <extension name="resources.jnlp" href="resources.jnlp"/>

    </resources>

    <applet-desc name="OracleForms" main-class="oracle.forms.engine.Main" width="600" height="500">

        <param name="serverArgs" value="module=start.fmx useSDI=yes"/>

        <param name="separateFrame" value="false"/>

        <param name="ORACLE_INSTANCE" value="/u01/app/oracle/product/OFM/mw1/FR_111_asinst101"/>

        <param name="serverURL" value="http://x-xx-xxx-x.xxx.xx.xx:1234/forms/lservlet?ifcfs=/forms/frmservlet?config=sisdev&ifsessid=formsapp.1466473088245"/>

        <param name="envFile" VALUE="envfile.env"/>

        <param name="userid" VALUE="@DEV"/>

        <param name="networkRetries" VALUE="30"/>

        <param name="jpi_download_page" value="http://x-xx-xxx-x.xxx.xx.xx:1234/webcode/jre-8u74-windows-i586.exe"/>

        <param name="jpi_classid" value="clsid:CAFEEFAC-0018-0000-FFFF-ABCDEFFEDCBA"/>

        <param name="jpi_codebase" value="http://x-xx-xxx-x.xxx.xx.xx:1234/webcode/jre-8u74-windows-i586.exe"/>

        <param name="jpi_mimetype" value="application/x-java-applet"/>

        <param name="WebUtilArchive" value="frmwebutil.jar"/>

        <param name="WebUtilLogging" value="off"/>

        <param name="WebUtilLoggingDetail" value="normal"/>

        <param name="WebUtilErrorMode" value="Alert"/>

        <param name="WebUtilDispatchMonitorInterval" value="5"/>

        <param name="WebUtilTrustInternal" value="true"/>

        <param name="WebUtilMaxTransferSize" value="16384"/>

        <param name="baseHTML" value="webutilbase.htm"/>

        <param name="baseHTMLjpi" value="webutiljpi.htm"/>

        <param name="archive" value="frmall.jar"/>

        <param name="lookAndFeel" value="Generic"/>

        <param name="cache_archive_ex" value="jacob.jar;preload,icons.jar;preload,FormsSecurity.jar;preload,commons.jar;preload"/>

    </applet-desc>

</jnlp>

As you can see on line 14 I have the reference to the extra jnlp file which sits: http://x-xx-xxx-x.xxx.xx.xx:1234/forms/java/

That file is:

<?xml version="1.0" encoding="utf-8"?>

<jnlp spec="1.8+" codebase="http://x-xx-xxx-x.xxx.xx.xx:1234/forms/java/" href="resources.jnlp" version="1.0">

    <information>

        <title>Forms</title>

        <vendor>Form test</vendor>

    </information>

    <security>

        <all-permissions/>

    </security>

    <resources>

        <jar href="jacob.jar"/>

        <jar href="icons.jar"/>

        <jar href="FormsSecurity.jar"/>

        <jar href="commons.jar"/>

    </resources>

    <component-desc/>

</jnlp>

When I remove the reference to the external JNLP file, my application starts up just fine and I can get to the initial start.fmx form and work normally.

I do need that external file though as it contains jars I'll need for the main application.

My question is what is wrong with my external resources file?  I am assuming the error is referring to that file when it says 'launch file'.

From what I understand, I've written it in the correct format.  Every example I've seen of usages of external jnlp files only have one jar file referenced in them.  I'm referencing 4 jar files.  Is that allowed?

Any ideas on how to get this running?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 16 2016
Added on Jun 30 2016
1 comment
4,576 views