Cas 4.2.2 ADFS error

34 views
Skip to first unread message

Eric Kyle

unread,
Jul 14, 2016, 2:26:15 PM7/14/16
to CAS Community
I have a stock CAS 4.2.2 install and am trying to implement CAS using the instructions at the site below.


While it builds fine, deployment yields the below errors.

2016-07-14 13:13:59,444 ERROR [org.springframework.web.context.ContextLoader] - <Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'adfsPrincipalResolver': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Coul
d not autowire field: private org.jasig.cas.support.wsfederation.WsFederationConfiguration org.jasig.cas.support.wsfederation.authentication.principal.WsFederationCredentialsToPrincipalResolver.configuration; nested exception is java.lan
g.NoClassDefFoundError: org/opensaml/security/credential/Credential



Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.jasig.cas.support.wsfederation.WsFederationConfiguration org.jasig.cas.support.wsfederation.authentication.principal.WsFederationCr
edentialsToPrincipalResolver.configuration; nested exception is java.lang.NoClassDefFoundError: org/opensaml/security/credential/Credential

Thoughts,

Eric

Misagh Moayyed

unread,
Jul 14, 2016, 2:44:23 PM7/14/16
to CAS Community
The module should be pulling in an opensaml dependency/jar. Do you see that jar in the final artifact? 

-- 
Misagh
--
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To post to this group, send email to cas-...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAF9f9PDaED%3D8-j1k1ZWdjrC8ZSLgzXsa7e8oZTWR32dnAxsRYA%40mail.gmail.com.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

Eric Kyle

unread,
Jul 14, 2016, 3:04:48 PM7/14/16
to Misagh Moayyed, CAS Community
ll /opt/work/local-cas/target/cas/WEB-INF/lib/ does not show the opensaml*.jar.

Misagh Moayyed

unread,
Jul 14, 2016, 3:11:11 PM7/14/16
to CAS Community
Attach your pom.xml file please. 

Eric Kyle

unread,
Jul 14, 2016, 3:14:42 PM7/14/16
to Misagh Moayyed, CAS Community
Attached. Thank you.

pom.xml

Misagh Moayyed

unread,
Jul 14, 2016, 3:35:40 PM7/14/16
to CAS Community
This was a missing piece in the docs. You’ll need to add the following to your list of repositories:

    <repository>
        <id>shibboleth-releases</id>
    </repository>

This should show up in the docs in about 20 minutes. 

Also, switch to 4.2.3. Irrelevant, but harmless :) 
Reply all
Reply to author
Forward
0 new messages