• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Spring Security 5.0 with Framework 4.3.11

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
Is it possible using Spring Security 5.0.0. with Spring Framework 4.3.11?

I have an XML configuration, due to previously migration from Security 3.2

Also I haven't a best practice doc about migration to Spring Security 5.0

Best regards!

Mark
 
Marco Mullner
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Marco Mullner wrote:Hi!
Is it possible using Spring Security 5.0.0. with Spring Framework 4.3.11?

I have an XML configuration, due to previously migration from Security 3.2

Also I haven't a best practice doc about migration to Spring Security 5.0

Best regards!

Mark




Sorry for the short post, but I had opened it having only few free seconds... now I can upgrade it!

That application start with Spring Framework 4.3.11 and Security 3.2,
now I must upgrade just the second one, so I've referenced version 5.0.0 (build snapshot) into the POM.

I've also changed somethings into spring-security.xml and login.jsp, as I've read into a documentation about migration to Spring Security 3.x to 4.x.
Unfortunately I've not found much more recent migration docs.

Because into Spring Security Reference 5.0.0 I've read some hints about the Framework 4.x, I've assumed there was no compatibility issues using the binomial Framework 4.3.11 + Security 5.0.0.

So, I have no compilation problems on STS, no problem using Maven, but when I've tried to deploy the EAR into Weblogic 12c I got a BEA-160228, and no other messages inside the logs.

Into the Weblogic console I can just select the new installation button, then select the EAR, then I got an application access denied with three String index out of range: 17188


What I can try:
1) using the Spring Security configuration without the XML, but I can't because I must do the migration the least invasive possible;
2) using Spring Security 4.2.3, so sure I haven't compatibility issues with the framework, I'll try that and update that post when I'll have some news;
3) upgrade Spring Framework to 5, but I can't because I don't know how many changes will be necessary.

Any other tips?


Thank you!

Mark
 
Marco Mullner
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, that's the last update.

I've used a downgrade to Spring Security 4.2.3 and now it's work.

So I can say: you can't use the Security 5.0.0 with the Framework 4.3.11 at all.
It may be usefull for someone else.


So, problem solved,
best regards!!

Mark
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Spring Security 5.0.0 has not yet been released at this moment - currently, there is only a snapshot version available. The current stable release version is 4.2.3.

The reference documentation says:


Spring Security builds against Spring Framework 5.0.0.RELEASE, but should work with 4.0.x. The problem that many users will have is that Spring Security’s transitive dependencies resolve Spring Framework 5.0.0.RELEASE which can cause strange classpath problems.


So, it should theoretically be possible to use Spring Security 5.0 with Spring Framework 4.x, but you will most likely get nasty dependency version problems that will be hard to fix.
reply
    Bookmark Topic Watch Topic
  • New Topic