pub service oaipmh wants distribution api

Steps to reproduce

The matterhorn-publication-service-oaipmh has a dep to matterhorn-distribution-service-api which is not included in the worker assembly. This results in the worker node not starting up.

Steps to reproduce:
1. extract worker assembly
2. start worker assembly
3. view opencast.log

Actual Results:
Mar 27, 2017 2:08:54 PM org.apache.karaf.main.Main launch
INFO: Installing and starting initial bundles
Mar 27, 2017 2:08:54 PM org.apache.karaf.main.Main launch
INFO: All initial bundles installed and set to start
Mar 27, 2017 2:08:54 PM org.apache.karaf.main.lock.SimpleFileLock lock
INFO: Trying to lock /home/doofy/git/opencast/develop/build/opencast-dist-worker/data/lock
Mar 27, 2017 2:08:54 PM org.apache.karaf.main.lock.SimpleFileLock lock
INFO: Lock acquired
Mar 27, 2017 2:08:54 PM org.apache.karaf.main.Main$KarafLockCallback lockAquired
INFO: Lock acquired. Setting startlevel to 100
2017-03-27 14:08:57,240 | ERROR | (BootFeaturesInstaller:126) - Error installing boot features
org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=opencast-worker; type=karaf.feature; version="[0,0.0.0]"; filter:="(&(osgi.identity=opencast-worker)(type=karaf.feature)(version>=0.0.0)(version<=0.0.0))" [caused by: Unable to resolve opencast-worker/0.0.0: missing requirement [opencast-worker/0.0.0] osgi.identity; osgi.identity=matterhorn-publication-service-oaipmh; type=osgi.bundle; version="[2.4.0.SNAPSHOT,2.4.0.SNAPSHOT]"; resolution:=mandatory [caused by: Unable to resolve matterhorn-publication-service-oaipmh/2.4.0.SNAPSHOT: missing requirement [matterhorn-publication-service-oaipmh/2.4.0.SNAPSHOT] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.opencastproject.distribution.api)(version>=2.4.0))"]]
at org.apache.felix.resolver.ResolutionError.toException(ResolutionError.java:42)[6:org.apache.karaf.features.core:4.0.8]
at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:389)[6:org.apache.karaf.features.core:4.0.8]
at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:375)[6:org.apache.karaf.features.core:4.0.8]
at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:347)[6:org.apache.karaf.features.core:4.0.8]
at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:216)[6:org.apache.karaf.features.core:4.0.8]
at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:263)[6:org.apache.karaf.features.core:4.0.8]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1176)[6:org.apache.karaf.features.core:4.0.8]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:1074)[6:org.apache.karaf.features.core:4.0.8]
at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_121]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]

Expected Results:
opencast should start up

Workaround (if any):

Assignee

Sven Stauber

Reporter

Michael Stypa

Severity

Crash/Hang

Tags (folksonomy)

None

Components

Fix versions

Priority

Major
Configure