The default worker profile does not load a series service implementation

Steps to reproduce

Steps to reproduce:

1. Build the "worker" module
2. Check the bundles that have been built, there is no series-service-impl

Activity

Show:
Greg Logan
October 30, 2013, 7:04 PM

Update in r/1.4.1 with commit bf2bc41.

Greg Logan
November 1, 2013, 7:09 PM

Final (hopefully) update in r/1.4.1 with commit 1ba72fe.

Olli Salo
January 7, 2014, 12:13 PM

We tried to compile 1.4.1 (final, downloaded Jan 2nd, 2014) on our worker + admin-engage nodes with the following profiles:

Worker:
*******
mvn clean install -X -DdeployTo=/opt/matterhorn/1.4.1 -Pworker-standalone,serviceregistry,workspace

Admin+Engage
************
mvn clean install -X -DdeployTo=/opt/matterhorn/1.4.1 -Padmin,dist-standalone,engage-standalone,worker-stub,workspace,serviceregistry,directory-ldap

Our admin compiled nicely, and so did our worker server. However, when we started MH as a service on the worker node, we started to get the following error messages on our terminal:

############
org.osgi.framework.BundleException: Unresolved constraint in bundle matterhorn-series-service-impl [89]: Unable to resolve 89.0: missing requirement [89.0] osgi.wiring.package; (&(osgi.wiring.package=org.opencastproject.solr)(version>=1.4.1))
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3826)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1868)
at org.apache.felix.framework.Felix.setBundleStartLevel(Felix.java:1388)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:301)
at java.lang.Thread.run(Thread.java:701)
############

Did we use wrong profile settings or what do you think went wrong?

Olli

Former user
January 7, 2014, 1:54 PM
Edited

Olli, the worker-standalone profile uses "matterhorn-series-service-remote", not series-service-impl. Your error message says the worker node is trying to load series-service-impl. Your worker may have an old series-service-impl jar lurking in the .../lib/matterhorn directory that needs to be deleted out.
Ref: https://bitbucket.org/opencast-community/matterhorn/src/f9626ee37a42723b5656eff38e0b19f01abf3cf5/pom.xml?at=r%2F1.4.1

Olli Salo
January 7, 2014, 2:08 PM

Karen, you're a lifesaver! Your tip worked like a charm. It was a self-induced problem: we first tried compiling with profile=worker, thus the lurking jar.

Fixed and reviewed

Assignee

Tobias Wunden

Reporter

Tobias Wunden

Severity

Data Loss/Corruption

Tags (folksonomy)

Components

Fix versions

Affects versions

Priority

Blocker
Configure