Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #12166 (closed)

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

Bug: omero_client.jar is missing dependencies

Reported by: jamoore Owned by: bpindelski
Priority: blocker Milestone: 5.0.2
Component: Deployment Version: 5.0.1
Keywords: n.a. Cc: bramalingam, java@…
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: n.a.


For example, when using bioformats_package.jar and omero_client.jar in matlab:
java.lang.NoClassDefFoundError?: ome/services/blitz/repo/path/ClientFilePathTransformer

Change History (4)

comment:1 Changed 10 years ago by bpindelski

A monkey-wrench solution would be the following change:

diff --git a/components/tools/OmeroJava/build.xml b/components/tools/OmeroJava/build.xml
index be0be4a..1d78995 100644
--- a/components/tools/OmeroJava/build.xml
+++ b/components/tools/OmeroJava/build.xml
@@ -57,6 +57,7 @@
             <fileset dir="${blitz.comp}/target/classes">
                 <include name="ome/formats/**/*.class"/>
+                <include name="ome/services/**/*.class"/>
                 <include name="pojos/*.class"/>
                 <include name="omero/**/*.class"/>
                 <exclude name="omero/**/_*Tie.class"/>

The problem lies in the build.xml file in OmeroJava. The pre-compile target is very selective when it comes to copying over files from other components. It additionally is confusing when build.xml is viewed side by side with ivy.xml, as the latter promises to include all of blitz in the resulting omero_client.jar.

comment:2 Changed 10 years ago by bpindelski

  • Owner set to bpindelski
  • Status changed from new to accepted

comment:3 Changed 10 years ago by bpindelski

  • Resolution set to fixed
  • Status changed from accepted to closed

Closing, as PR 2393 merged. A general plan for an OMERO uber-JAR for Matlab is still pending and is being handled on Trello.

comment:4 Changed 10 years ago by Josh Moore <josh@…>

  • Remaining Time set to 0

(In [722c5fde67f05d400da0cde8d65aa640bc57a073/ome.git] on branch develop) Merge pull request #2465 from bpindelski/rebased/develop/12166-omero-client

Add missing deps to omero_client.jar (fix #12166) (rebased onto develop)

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.62038 sec.)

We're Hiring!