Task #9478 (closed)
Bug: Webstart jar sequence
Reported by: | jburel | Owned by: | jamoore |
---|---|---|---|
Priority: | major | Milestone: | OMERO-4.4.4 |
Component: | General | Version: | n.a. |
Keywords: | n.a. | Cc: | |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | 0.0d |
Sprint: | n.a. |
Description
This page specifies that "the jar containing the main class must be the
first jar listed" in the JNLP file:
http://lopica.sourceforge.net/ref.html#jar
This doesn't seem to be true in webstart/templates/webstart/insight.xml,
and caused a failure for one of our users. It must be JVM version
dependent because it isn't a problem for me. But re-ordering fixed it
for her i.e. making omero.insight.jar first.
Jmarie: i have built a test application with the attribute main=true for the jar containing the main method. I will investigate
Change History (3)
comment:1 Changed 12 years ago by jmoore
- Resolution set to fixed
- Status changed from new to closed
comment:2 Changed 12 years ago by cxallan
Example error message when this does occur:
An error occurred while launching/running the application. Title: OMERO.insight Vendor: The Open Microscopy Environment Category: Launch File Error Could not find main-class org.openmicroscopy.shoola.Main in http://.../static/webstart/jars/jai_imageio.jar
When the first few lines of the JNLP file look something like this:
<?xml version="1.0" encoding="utf-8"?> <jnlp codebase="http://.../static/webstart/jars/" href="http://.../omero/webstart/jars/insight.jnlp"> <information> <title>OMERO.insight</title> <vendor>The Open Microscopy Environment</vendor> <homepage href="http://www.openmicroscopy.org"/> <icon href="/static/webstart/img/icon-omero-insight.png"/> <shortcut online="false"> <desktop/> </shortcut> <offline-allowed/> </information> <security> <all-permissions/> </security> <resources> <j2se version="1.5+" max-heap-size="512m"/> <jar href="jai_imageio.jar"/> <jar href="gluegen-rt.jar"/> <jar href="platform.jar"/> <jar href="mdbtools-java.jar"/> ...
Reinforcing the fact that this does happen in the wild. The example above is on Windows XP launched via Internet Explorer 8.
comment:3 Changed 12 years ago by jmoore <josh@…>
- Remaining Time set to 0
(In [37e1f993070a84c1b8dc9e74308384e94b53b6f5/ome.git] on branch develop) Add webstart configuration (Fix #9478)
Initially, the webstart_jar configuration option was
added in order to allow proper ordering of the insight
jars. However, it made sense to configure all the
hard-coded properties at the same time.
This commit also includes two currently unused properties:
jnlp.omero.host and jnlp.omero.port
which can be used to select an initial server in insight.
Ordering any jar named settings.WEBSTART_JAR (default: omero.insight.jar) to the top. See https://github.com/openmicroscopy/openmicroscopy/pull/286 (used this ticket for general configuration)