The issue you describe may have recently been fixed. What version of CAS
are you on? I think 3.5.1 did have some improvements in that area. 

No objections to JacksonJsonView. Spring-json does however offer some very
continent declarative ways to handle exceptions and errors. If there are
equivalents, we could certainly switch over. 

-Misagh



> -----Original Message-----
> From: Pronstad, Thomas [mailto:thomas.prons...@get.no]
> Sent: Wednesday, October 10, 2012 3:34 AM
> To: cas-dev@lists.jasig.org
> Subject: Re: [cas-dev] Can't start CAS webapp due to spring-2.5.6.jar
> 
> 
> 
> On 17.09.12 20:46, "jleleu" <lel...@gmail.com> wrote:
> 
> >Hi,
> >
> >The spring-2.5.6.jar is now present in the WEB-INF/lib directory of the
> >CAS server webapp.
> >Following the Maven dependency tree, I see :
> >[INFO] +- net.sf.spring-json:spring-json:jar:1.3.1:runtime
> >[INFO] |  +- org.springframework:spring:jar:2.5.6:runtime
> >
> >It looks like the spring-json dependency brings back the
spring-2.5.6.jar.
> >
> >It comes with the pull request #108. Even if there is some generic
> >exclusion of dependencies, it doesn't seem to work :
> >  <exclusion>
> >    <groupId>org.springframework</groupId>
> >    <artifactId>*</artifactId>
> >
> >Because of this spring-2.5.6.jar, I have a NoSuchMethodError at start
up.
> >Removing it makes webapp starts without any problem.
> >
> >Does someone have the same problem ?
> 
> 
> I have an issue with one of the other dependencies that spring-json
drags
> into cas webapp.
> 
> Our overlay uses some of our own extensions for one time passwords that
uses
> cglib (spring annotation configuration requirement).
> 
> The spring-json lib uses cglib-full 2.0.X which is outdated and collides
with
> other cglib artifacts.
> 
> Not sure why spring-json library is used, not the spring 3
JacksonJsonView,
> but it seems spring-json uses somewhat old dependencies.
> Last release of spring-json was back in 2010.
> 
> As cglib-full is not an artifact that comes in newer versions (cglib
2.2.2 is
> newest) we have to exclude spring-json from the webapp overlay and
include it
> with the required exclusions in our overlayed pom.
> 
> Even if this is not a bug, it's annoying for anyone that uses spring
> annotation configuration or other artifacts that requires cglib when
> extending CAS.
> 
> 
> Regards
> 
> Thomas Pronstad
> Senior developer
> 
> 
> GetR
> Phone +47 21 90 00 00
> Mobile +47 957 82 364
> 
> http://www.get.no <http://www.get.no/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> You are currently subscribed to cas-dev@lists.jasig.org as:
> mmoay...@unicon.net To unsubscribe, change settings or access archives,
see
> http://www.ja-sig.org/wiki/display/JSG/cas-dev


-- 
You are currently subscribed to cas-dev@lists.jasig.org as: 
arch...@mail-archive.com
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-dev

Reply via email to