I’m trying to upgrade from spring security 3.0.5 to 4.2.3

Asked

Viewed 44 times

0

I’m trying to switch from spring security 3.0.5 to 4.2.3 but I’m having a serious dependency problem. In this project I was forced not to use mavem or something like that. And the problem (I just added the partially working library) is between the two spring-web libraries at 3.0.5 and 4.2.5. 4.2.5 has a Requestentity class that I use to generate a tokem for a web service request but 3.0.5 that spring-security is configured does not have that class that the newer version has. And when I run the form it runs the oldest library and as it does not have that class I cannot generate the token. And I don’t know how to move spring security to 4.2.5.
- My root-context:

xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
                        http://www.springframework.org/schema/beans/spring-beans-4.3.xsd 
                        http://www.springframework.org/schema/tx 
                        http://www.springframework.org/schema/tx/spring-tx-4.2.xsd
                    http://www.springframework.org/schema/context 
                        http://www.springframework.org/schema/context/spring-context-4.2.xsd"

My security.xml

xmlns="http://www.springframework.org/schema/security"
         xmlns:beans="http://www.springframework.org/schema/beans"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://www.springframework.org/schema/beans 
                             http://www.springframework.org/schema/beans/spring-beans-4.3.xsd
                             http://www.springframework.org/schema/security
                             http://www.springframework.org/schema/security/spring-security-4.2.xsd"

My servelt-context.xml

xmlns="http://www.springframework.org/schema/mvc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:beans="http://www.springframework.org/schema/beans"

xsi:schemaLocation="
    http://www.springframework.org/schema/mvc
    http://www.springframework.org/schema/mvc/spring-mvc-4.2.xsd
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans-4.3.xsd"

My Library inserir a descrição da imagem aqui

Library that works with the problem in web-service inserir a descrição da imagem aqui

  • Where this dependence org.springframework.core-3.0.4.RELEASE.jar Are you coming? Are you using Maven, Gradle or something, can you send the dependency hierarchy? What’s this "very serious dependency problem"?

  • In this project I was forced not to use mavem or something like that. And the problem (I just added the partially working library) is between the two spring-web libraries at 3.0.5 and 4.2.5. 4.2.5 has a Requestentity class that I use to generate a tokem for a web service request but 3.0.5 that spring-security is configured does not have that class that the newer version has. And when I run the form it runs the oldest library and as it does not have that class I cannot generate the token. And I don’t know how to move spring security to 4.2.5.

  • As step to 4.2.5 making the fewest possible changes.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.