WebStart URL_TO_OPEN doesn't seem to work

Having trouble installing Oxygen? Got a bug to report? Post it all here.
dcarlton
Posts: 3
Joined: Wed May 09, 2012 4:38 pm

WebStart URL_TO_OPEN doesn't seem to work

Post by dcarlton »

I'm using Java WebStart on Linux to launch OxygenAuthor. I modified the default JNLP file by adding the url of a file that I'd like to open upon launching OxygenAuthor:

Code: Select all

<application-desc main-class="ro.sync.jws.JwsDeployer">
<argument>file:////foo/bar/aboutOxygen.dita</argument>
<!-- You can specify the list of files oXygen should open at startup.
<argument>URL_TO_OPEN_1</argument>
<argument>URL_TO_OPEN_2</argument>
-->
</application-desc>
When I invoke the JNLP, OxygenAuthor opens but does not display the file I specified in the JNLP.

Any ideas why?

I'm using
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

Here's the full JNLP:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<jnlp codebase="http://foo/oxygen" href="author.jnlp" spec="1.0+">
<information>
<title>Oxygen XML Author 13.2</title>
<vendor>Syncro Soft Ltd.</vendor>
<homepage href="index.html"/>
<description>Oxygen XML Author 13.2</description>
<description kind="short">Oxygen XML Author 13.2</description>
<icon href="AuthorJWS128.png"/>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se initial-heap-size="32m" max-heap-size="256m" version="1.5+"/>
<jar href="lib/deployer.jar" main="true" download="eager"/>
<jar href="lib/deployerUtils.jar" download="eager"/>
<jar href="lib/log4j.jar" download="eager"/>
<jar href="lib/log4j.properties.jar" download="eager"/>
<jar href="lib/oxygenAuthor_templates.zip.jar" download="eager"/>
<jar href="lib/oxygenAuthor_lib.zip.jar" download="eager"/>
<jar href="lib/oxygenAuthor_tools.zip.jar" download="eager"/>
<jar href="lib/oxygenAuthor_frameworks.zip.jar" download="eager"/>
<jar href="lib/oxygenAuthor_plugins.zip.jar" download="eager"/>
<jar href="lib/oxygenAuthor.zip.jar" download="eager"/>
<jar href="lib/oxygenAuthor_dicts.zip.jar" download="eager"/>
<jar href="lib/deploy.xml.jar" download="eager"/>
<jar href="lib/oxygenAuthor_samples.zip.jar" download="eager"/>


<property name="apple.awt.showGrowBox" value="true"/>
<property name="apple.laf.useScreenMenuBar" value="true"/>
<property name="javax.xml.parsers.DocumentBuilderFactory"
value="com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl"/>
<property name="jwsDeployerImage" value="author32.gif"/>

<!-- Launch properties. -->
<property name="mainClass" value="ro.sync.exml.Oxygen"/>
<property name="classPathDir" value="lib"/>
<property name="vmArgs" value="-Duser.home=/usr/local/google/ita/tools -Xms512m -Xmx2048m -XX:MaxPermSize=512m -XX:SoftRefLRUPolicyMSPerMB=10 -Dsun.java2d.noddraw=true -Dcom.oxygenxml.app.descriptor=ro.sync.exml.AuthorFrameDescriptor"/>
<property name="vmArgsMac" value="-Xdock:name=Author -Xdock:icon=Author.icns -Dapple.awt.showGrowBox=true -Dapple.laf.useScreenMenuBar=true"/>

<!-- You can specify some properties that will be forwarded to the oXygen application when
started. The properties MUST be prefixed with 'oxy'. The prefix will be stripped before being passed to the started application.-->
<!--<property name="oxyPropertyName" value="testValue"/>-->
<property name="oxycom.oxygenxml.bundle.descriptor" value="author"/>
</resources>

<application-desc main-class="ro.sync.jws.JwsDeployer">
<argument>file:////foo/bar/aboutOxygen.dita</argument>
<!-- You can specify the list of files oXygen should open at startup.
<argument>URL_TO_OPEN_1</argument>
<argument>URL_TO_OPEN_2</argument>
-->
</application-desc>
</jnlp>
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: WebStart URL_TO_OPEN doesn't seem to work

Post by adrian »

Hello,

We've re-tested and this works fine in v13.2.
Where is the file located, is it accessible to the running instance of Oxygen?

To make sure you are using the correct URL for the file, start Oxygen and open the file normally. Then right click on the editor tab in Oxygen and from the popup menu choose Copy Location to obtain the URL of the file.

Note that after any modification of the JNLP file you have to rebuild the JWS package. Making changes to the JNLP file directly from the deployment directory will not work because the JNLP is signed.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply