I've run into further issues. What I believe to be the pertinent log output:
*2016-04-28 19:55:59,309 INFO [org.jasig.cas.authentication.PolicyBasedAuthenticationManager] - <QueryDatabaseAuthenticationHandler successfully authenticated test>2016-04-28 19:55:59,316 INFO [org.jasig.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail record BEGIN=============================================================WHO: testWHAT: 'principal' cannot be null.Check the correctness of @Audit annotation at the following audit point: execution(public abstract transient org.jasig.cas.authentication.Authentication org.jasig.cas.authentication.AuthenticationManager.authenticate(org.jasig.cas.authentication.Credential[]))ACTION: TICKET_GRANTING_TICKET_NOT_CREATEDAPPLICATION: CASWHEN: Thu Apr 28 19:55:59 GMT 2016CLIENT IP ADDRESS: 10.1.128.5SERVER IP ADDRESS: 10.1.118.81=============================================================* Full log output at http://pastebin.com/LmJwZfhd (expires 5 May 2016). I've pushed my working copy of cas-overlay-template to github - link to deployerConfigContext.xml <https://github.com/richardsmd/cas-overlay-template/blob/pb-4.2/src/main/webapp/WEB-INF/deployerConfigContext.xml> For the changes I attempted to follow the 4.1 documentation <http://jasig.github.io/cas/4.1.x/integration/Attribute-Resolution.html> with minimal deviation. For what it's worth, I have tried exactly this config with the following 2 changes (to exactly match the docs) and had the same result - p:attributeRepository-ref="attributeRepository" + p:attributeRepository-ref="singleRowJdbcPersonAttributeDao" p:returnNullIfNoAttributes="true" /> <!-- JDBC attribute repository --> - <bean id="attributeRepository" + <bean id="singleRowJdbcPersonAttributeDao" Please note that the 4.2 is *not* related the jasig version and that my cas-overlay-template is forked from the 4.1 branch. For what it's worth, the previous commit worked for JDBC-based database authentication and still appears to work per the logs ("successfully authenticated test). Thank you again, Mike On Thu, Apr 28, 2016 at 9:13 AM, Misagh Moayyed <[email protected]> wrote: > There is a different way, not necessarily a better way J and that is, in > your pom.xml you start excluding that specific dependency from the > cas-server-webapp. If you scan the list archives, you’ll find examples on > how to do that, and the base overlay does have a few exclusions built in > that you can use as a starting point. > > > > If you’re already doing it in a deploy script, I’d say leave the pom be > for now, upgrade and adjust your script afterwards. > > > > *From:* [email protected] [mailto:[email protected]] *On Behalf Of *Mike > Richards > *Sent:* Thursday, April 28, 2016 8:40 AM > *To:* CAS Community <[email protected]> > *Cc:* [email protected] > > *Subject:* Re: [cas-user] 4.2 - Attribute Resolution via JDBC > > > > I added a 1.7.1 dependency to pom.xml but now get both 1.7.0 and 1.7.1 > > I've updated my deploy script to delete the 1.7.0 impl/api files and > everything seems to work. Is there a better way, or does it necessitate > waiting for the patch you mentioned? > > Regardless, thank you much! > > Mike > > On Wednesday, April 27, 2016 at 3:58:11 PM UTC-7, Misagh Moayyed wrote: > > Switch to 1.7.1. It should go away. The next patch release should do this > for you automatically when it’s released. > > > > *From:* [email protected] [mailto:[email protected]] *On Behalf Of *Mike > *Sent:* Wednesday, April 27, 2016 3:56 PM > *To:* Misagh Moayyed <[email protected]> > *Cc:* CAS Community <[email protected]> > *Subject:* Re: [cas-user] 4.2 - Attribute Resolution via JDBC > > > > person-directory-impl and api are 1.7.0 > > > > On Wed, Apr 27, 2016 at 3:48 PM, Misagh Moayyed <[email protected]> > wrote: > > What is the version of PersonDirectory that you have in CAS? Is it 1.7.1? > Check your lib directory and you should find the relevant JAR. > > > > *From:* [email protected] [mailto:[email protected]] *On Behalf Of *Mike > Richards > *Sent:* Wednesday, April 27, 2016 1:17 PM > *To:* CAS Community <[email protected]> > *Subject:* [cas-user] 4.2 - Attribute Resolution via JDBC > > > > I'm attempting to configure attribute resolution for a database-centric > person directory. > > Following the documentation for 4.2 > <http://jasig.github.io/cas/4.2.x/integration/Attribute-Resolution.html> > I've done the following > > - Add the commons-collections4 apache dependency to pom.xml > - Add the "Sample Usage" code for JDBC > > > - dataSource bean is already defined > - I've updated the resultAttributeMapping to match my > underscore-less DB schema > > On startup I get the following error: java.lang.NoClassDefFoundError: > org/springframework/jdbc/core/simple/ParameterizedRowMapper > > > > Looking at the spring framework source > <https://github.com/spring-projects/spring-framework/tree/v4.1.9.RELEASE/spring-jdbc/src/main/java/org/springframework/jdbc/core/simple> > it seems that this class was dropped in 4.2 which seems concerning as jasig > 4.2 seems to rely heavily on spring 4.2 > > > > Nevertheless, I added an explicit dependency for sping-jdbc per mvn > repository > <http://mvnrepository.com/artifact/org.springframework/spring-jdbc/4.1.9.RELEASE>. > On restart I then got a new error: NoSuchMethodError: > org.springframework.core.annotation.AnnotationAttributes.getAliasedString > > > > It ... looks like AnnotationAttributes.getAliasedString was added in 4.2 > > > > Can anyone advise as to next steps towards resolving this? Is this an > "open a bug report and try jasig 4.1 until it gets resolved" sort of > situation? > > > > Thank you much, > > > > Mike > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > 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/3841fbcd-85f2-4215-99bc-0a79419ec3f8%40apereo.org > <https://groups.google.com/a/apereo.org/d/msgid/cas-user/3841fbcd-85f2-4215-99bc-0a79419ec3f8%40apereo.org?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/a/apereo.org/d/optout. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "CAS Community" group. > To unsubscribe from this topic, visit > https://groups.google.com/a/apereo.org/d/topic/cas-user/LjF9OqC-HAw/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > 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/028501d1a0d6%24eb2ac7f0%24c18057d0%24%40unicon.net > <https://groups.google.com/a/apereo.org/d/msgid/cas-user/028501d1a0d6%24eb2ac7f0%24c18057d0%24%40unicon.net?utm_medium=email&utm_source=footer> > . > > > For more options, visit https://groups.google.com/a/apereo.org/d/optout. > > > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > 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/CABjAZKCW_W9-Ahczh84-s7NK1FuxSX%3Dw2SvtGwbW0zdXKs0vfQ%40mail.gmail.com > <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CABjAZKCW_W9-Ahczh84-s7NK1FuxSX%3Dw2SvtGwbW0zdXKs0vfQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/a/apereo.org/d/optout. > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > 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/8dd75661-dac6-4b02-9889-98f71c7419ff%40apereo.org > <https://groups.google.com/a/apereo.org/d/msgid/cas-user/8dd75661-dac6-4b02-9889-98f71c7419ff%40apereo.org?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/a/apereo.org/d/optout. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "CAS Community" group. > To unsubscribe from this topic, visit > https://groups.google.com/a/apereo.org/d/topic/cas-user/LjF9OqC-HAw/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > 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/01ca01d1a168%24de368240%249aa386c0%24%40unicon.net > <https://groups.google.com/a/apereo.org/d/msgid/cas-user/01ca01d1a168%24de368240%249aa386c0%24%40unicon.net?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/a/apereo.org/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. 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/CABjAZKBcbYFcC4PSyDtyzwgYE_1drxSBWZ2mMEpvFvQwFepqaw%40mail.gmail.com. For more options, visit https://groups.google.com/a/apereo.org/d/optout.
