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] <javascript:> [mailto:[email protected] <javascript:> ] On Behalf Of Mike Sent: Wednesday, April 27, 2016 3:56 PM To: Misagh Moayyed <[email protected] <javascript:> > Cc: CAS Community <[email protected] <javascript:> > 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] <javascript:> > 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] <javascript:> [mailto:[email protected] <javascript:> ] On Behalf Of Mike Richards Sent: Wednesday, April 27, 2016 1:17 PM To: CAS Community <[email protected] <javascript:> > 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] <javascript:> . To post to this group, send email to [email protected] <javascript:> . 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] <javascript:> . To post to this group, send email to [email protected] <javascript:> . 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] <javascript:> . To post to this group, send email to [email protected] <javascript:> . 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] <mailto:[email protected]> . To post to this group, send email to [email protected] <mailto:[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 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/01ca01d1a168%24de368240%249aa386c0%24%40unicon.net. For more options, visit https://groups.google.com/a/apereo.org/d/optout.
