Upgrading RS Gateway Extensions
This is an overview of common situations during RS Gateway extension upgrade due to upgraded Spring Boot versions in MATRIXX version 5280. For specific information about upgrade impacts to your extensions, see the third-party migration documentation.
- /opt/mtx/conf/webapps/rsgateway/classes
- /opt/mtx/conf/webapps/rsgateway/lib
- /opt/mtx/ext/rsgateway
- /opt/mtx/ext/common
For information about Spring versions in MATRIXX, see the discussion about data changes in the MATRIXX Release Notes.
Third-Party Migration Documentation
- The discussion about preparing for 6.0 in the Spring Security documentation. Specifically refer to the servlet migration topics.
- The Spring Boot 3.0 Migration Guide in GitHub.
- The discussion about Spring Boot logging in the Spring Boot documentation.
Spring Security no longer includes WebSecurityConfigurerAdapter. The discussion about Spring Security without the WebSecurityConfigurerAdapter in the Spring blog describes common use cases and alternative configurations. Use that documentation as a guide for your updates.
Incompatible Packages and Versions
// error
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.logging.slf4j.Log4jLoggerFactory: method 'void <init>()' not found
// pom.xml
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j2</artifactId>
<exclusions>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j2-impl</artifactId>
</exclusion>
</exclusions>
</dependency>
mvn -DoutputFile=tree.txt dependency:tree
After the dependency is identified, add the <exclusion>
to
exclude it.
log4j:WARN No appenders could be found for logger (org.apache.htrace.core.Tracer).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.23.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.23.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.23.1</version>
</dependency>
Recompile and re-test your extensions.