When setting up CAS all the CAS classes for matterhorn-kernel not available

Steps to reproduce

Steps to reproduce:
1. Install opencast 2.2.0 - all in one
2. in org.apache.karaf.features.cfg add cas:
featuresBoot = config,standard,region,package,kar,opencast-allinone,opencast-contrib-cas
3. do your own cas config in mh_default_org.xml

Actual Results:

Error:

Could not start bundle
mvn : org.opencastproject/matterhorn-kernel/2.2.0 in feature(s)
opencast-core-2.2.0 : Unresolved constraint in bundle
matterhorn-kernel [168] : Unable to resolve 168.0: missing requirement [168.0] osgi.wiring.package; (osgi.wiring.package=org.jasig.cas.client.session.SingleSignOutFilter

Expected Results:
CAS should work

Workaround (if any):

In /modules/matterhorn-kernel/pom.xml

Add following classes to <Import-Package>
org.jasig.cas.client.session,
org.springframework.security.cas,
org.springframework.security.cas.web,
org.springframework.security.cas.authentication,
org.jasig.cas.client.validation,
org.springframework.security.cas.web.authentication,

you should probably use ;resolution:=optional, at the end so that it only loads when classes exist if CAS feature is added ?

Looks like 'fragment' does not automatically make classes available to attached bundle ?

Activity

Show:
Wimpie De KLerk
October 5, 2016, 7:09 AM

In Steps to reproduce: Step2
2. in org.apache.karaf.features.cfg add cas:
featuresBoot = config,standard,region,package,kar,opencast-allinone,opencast-contrib-cas

I added opencast-contrib-cas to featuresBoot list in ../etc/org.apache.karaf.features.cfg - have all the classes needed.

Looks just like matterhorn kernel bundle is not picking up the classes without explicit import ??
or is there another feature I can try ?

Wimpie De KLerk
October 5, 2016, 7:14 AM

might be the order of the featrues - i will try featuresBoot = config,standard,region,package,kar,opencast-contrib-cas,opencast-allinone

Wimpie De KLerk
October 10, 2016, 1:33 PM

order did not fix it.

it only works when adding cas classes as optional like below under import section:
/modules/matterhorn-kernel/pom.xml

<Import-Package>
!org.jboss.security.xacml.sunxacml.*,
!org.springframework.jdbc.core.*,
!org.springframework.security.core.codec.*,
!org.w3c.dom.*,
!sun.net.www.protocol.*,
!sun.security.util.*,
javax.xml.datatype;version=0,
javax.xml.namespace;version=0,
javax.xml.parsers;version=0,
javax.xml.validation;version=0,
org.opencastproject.fsresources,
org.opencastproject.lti,
org.springframework.security.core.userdetails.cache,
org.springframework.security.core.userdetails.memory,
org.springframework.security.ldap,
org.springframework.security.ldap.authentication,
org.springframework.security.ldap.search,
org.jasig.cas.client.session;resolution:=optional,
org.springframework.security.cas;resolution:=optional,
org.springframework.security.cas.web;resolution:=optional,
org.springframework.security.cas.authentication;resolution:=optional,
org.jasig.cas.client.validation;resolution:=optional,
org.springframework.security.cas.web.authentication;resolution:=optional,
org.xml.sax;version=0,
META-INF.cxf,
META-INF.cxf.osgi,
*
</Import-Package>

Mostolog
April 25, 2017, 4:16 PM

As commented on mail list, if adding those lines on kernel pom's solves the issue, I could do the PR.

Lars Kiesow
September 1, 2017, 8:16 AM

CAS is still not working properly but the error now is a different one. Filed here is Jira as well…

Cannot Reproduce

Assignee

Lars Kiesow

Reporter

Wimpie De KLerk

Severity

Non Functioning

Tags (folksonomy)

None

Components

Fix versions

Affects versions

Priority

Major
Configure