Which version spring portlet is applicable for liferay 6.2 - liferay-6.2

I developed one spring portlet with version 3.0, while i added the portlet into panel pages it showing below error:
ERROR [http-bio-8080-exec-9][AdvancedPermissionChecker:618]
com.liferay.portal.NoSuchResourceActionException: #CONFIGURATION
com.liferay.portal.NoSuchResourceActionException: #CONFIGURATION
So for Liferay 6.2, which version spring is accepted? Any body any idea?

The supported version of Spring for Liferay 6.2 is 3.0.7.RELEASE.
See the following discussion on the subject:
http://www.liferay.com/community/forums/-/message_boards/message/4633431

Related

Spring boot 2.7.3 and custom CharsetProvider

I'm trying to register a custom CharsetProvider.
As suggested in the https://stackoverflow.com/questions/39641604/spring-boot-1-4-x-and-custom-charsetprovider post we upgraded our application to use maven shade plugin for packaging which was automatically registering our custom charset provider and things were working fine till our application app was in Spring boot 2.7.3 and java 11. Once we tried upgrading our application to Java 17, again our custom charset provider was not loaded.
Any help would be highly appreciated.
Thanks in advance!
Upgraded java version to 17 and expected shade plugin to work the same way it was working with java 11.

Is Spring 5 compatible with Hibernate 6.1?

The Problem
We currently have a Spring MVC application (non-spring-boot) based on Spring 5 and Hibernate 5. We have to migrate the app to Hibernate 6.1.
During testing we are encountering exceptions once upgraded to Hibernate 6.1. The root cause exception
java.lang.NoClassDefFoundError:
Could not initialize class org.springframework.orm.hibernate5.LocalSessionFactoryBuilder
Is Spring 5 compatible with Hibernate 6.1? I checked the Spring.io website but could not find any compatibility information for spring-orm.
What I Expected
I expected the application to work with Hibernate 6.1 upgrade.
Environment
Spring MVC 5.3.21 (non-spring-boot)
Hibernate 6.1.0
Tomcat 9.0.64
Java 13
Ubuntu 20
Research Performed
I checked the spring.io website and reference manual. I could not find compatibility information for spring-orm and Hibernate 6.1
How to Reproduce
Deploy a Spring MVC web app (non-spring-boot) that uses Spring 5.3.21 and Hibernate 6.1

Compatibility - Spring Security 4.2.2 with Spring 3.2.14

our application currently uses JBoss Portal with JAAS as the authentication/authorization mechanism. The version of Spring we are currently using is 3.2.14. For various reasons we are unable to upgrade Spring right now.
We are going to be migrating to Spring Security shortly and are wondering if Spring Security 4.2.2 will be compatible with Spring 3.2.14. My thoughts are that since Spring Security is a separate project it should be OK?
I can't seem to find any information on the compatibility issues between major versions of Spring and major versions of Spring Security.
For Spring Security 4.2.2, the minimum recommended Spring version is 4.3.5.
This is stated in the SpringSecurityCoreVersion class which is located in the org.springframework.security.core package.

Why latest STS doesn't supprot latest Spring 4.2.4?

I just downloaded the STS (Spring Tool Suite) and created a simple Spring project.
But the supported Spring version is as below:
Why the latest Spring 4.2.4 is not listed? How can I add it?
I think, it's because they are in favor of Spring-boot. You can create a Spring Starter Project instead and it will come with the lastest version of spring.

Can I use spring security with Spring 4.0?

We were starting to build a new web application and thought of using Spring 4.0. We wanted to use Spring security as well and I can see only 3.2.6 version is available for that. Just wanted to check if it is compatible with 4.0 or not?
Yes .Spring Security latest version 3.2.0 is built against Spring 3.2.6 , but it is tested against Spring 4.
If you use Maven , you have to resolve its transitive dependencies when using Spring 4 with Spring Security 3.2 .
For more information , please see this

Resources