Page 1 of 1

[Solved] Change Spring Version

PostPosted:Fri Jun 22, 2012 11:22 am
by michaeled
Hi all,

When i compile OpenKM, it download the 2.5.6 version of spring:
Code: Select all
Downloading: http://repository.jboss.org/nexus/content/groups/public/org/springframework/spring/2.5.6/spring-2.5.6.pom
For the CAS implementation, I need the 3.0.3 version of spring, so i get this error:
Code: Select all
13:20:50,096 ERROR [SpringSecurityCoreVersion] Spring Major version '3' expected, but you are running with version: 2.5.6. Please check your classpath for unwanted jar files.
13:20:50,096 WARN  [SpringSecurityCoreVersion] You are advised to use Spring 3.0.3 or later with this version. You are running: 2.5.6
13:20:50,096 INFO  [SecurityNamespaceHandler] Spring Security 'config' module version is 3.0.5.RELEASE
13:20:50,119 ERROR [ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/spring-configuration/securityContext.xml]; nested exception is java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.getLocalName(Lorg/w3c/dom/Node;)Ljava/lang/String;
I recompiled cas-client and cas-client-integration with the 3.0.3 version of Spring, no pb.

How can I change the downloaded version of Spring when I compiled OpenKM ????

Change Spring Version

PostPosted:Sat Jun 23, 2012 10:37 am
by michaeled
Issue solved!

Re: Change Spring Version

PostPosted:Sun Jun 24, 2012 10:47 am
by jllort
How did you solve it, can be useful for other users.

If you configure with CAS your configuration is welcome to be shared in our comunity documentation ( there's something there now too ), but we understand it's difficult configuration and more examples always can help users to clarify concepts.

Re: Change Spring Version

PostPosted:Mon Jul 02, 2012 5:39 pm
by michaeled
Sure, here is the solution:

Just after the first mvn install ....
Lot of dependencies are downloaded. I've modified the pom.xml in /root/.m2/repository/com/ettrema/milton-servlet/1.7.2/milton-servlet-1.7.
> replaced <version>2.5.6</version> by <version>3.0.5.RELEASE</version>
for spring and spring-webmvc. Then delete Spring and spring-webmvc in the .m2 rpository and recompile.

It works fine ! But there is maybe a more simple manner to do that ...

Re: Change Spring Version

PostPosted:Mon Jul 02, 2012 5:42 pm
by michaeled
jllort wrote:How did you solve it, can be useful for other users.

If you configure with CAS your configuration is welcome to be shared in our comunity documentation ( there's something there now too ), but we understand it's difficult configuration and more examples always can help users to clarify concepts.
CAS configuration is now working with LDAP Role Integration. I don't have done the deconnexion yet.

Re: Change Spring Version

PostPosted:Tue Jul 03, 2012 5:52 am
by pavila
Some user request information on CAS integration, perhaps you could write a little tutorial with this information to be included in the documentation wiki or in this forum?

Regards.

Re: Change Spring Version

PostPosted:Tue Jul 03, 2012 1:20 pm
by michaeled
pavila wrote:Some user request information on CAS integration, perhaps you could write a little tutorial with this information to be included in the documentation wiki or in this forum?

Regards.
Yes, when I finished the integration (with disconnect) I document it !

Re: Change Spring Version

PostPosted:Sat Jul 07, 2012 6:49 am
by pavila
Ok, thanks.

Re: Change Spring Version

PostPosted:Thu Aug 09, 2012 11:14 am
by michaeled
pavila wrote:Ok, thanks.

folow this
http://forum.openkm.com/viewtopic.php?f ... 413#p17413

Re: [Solved] Change Spring Version

PostPosted:Mon Aug 27, 2012 5:23 am
by pavila
Nice :)