Current Setup:
- atlassian-connect-spring-boot-starter: 4.0.7
- atlassian-connect-spring-boot-jpa-starter: 4.0.7
- spring-boot-starter-parent: 3.2.4
- spring-boot-starter-web: 3.2.4
- spring-boot-starter-data-jpa: 3.2.4
- spring-boot-starter-mail: 3.2.4
- spring-boot-starter-test: 3.2.4
- spring-context-support: 6.1.3
- spring-test: 6.1.3
- spring-security-web: 6.2.3
Target Setup (Attempted Upgrade):
- atlassian-connect-spring-boot-starter: 5.1.0
- atlassian-connect-spring-boot-jpa-starter: 5.1.0
- spring-boot-starter-parent: 3.2.7
- spring-boot-starter-web: 3.2.7
- spring-boot-starter-data-jpa: 3.2.7
- spring-boot-starter-mail: 3.2.7
- spring-boot-starter-test: 3.2.7
- spring-context-support: 6.1.10
- spring-test: 6.1.10
- spring-security-web: 6.2.5
Environment:
- Apache Maven: 3.9.6
- Java version: 17.0.10
Issue Description:
Upon upgrading atlassian-connect-spring-boot-starter
and atlassian-connect-spring-boot-jpa-starter
to version 5.1.0, the application fails to start with the following exception:
2024-08-05T18:53:01.768+05:30 WARN 21452 --- [ restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'requireAuthenticationHandlerInterceptor' defined in URL [jar:file:/C:/Users/mohan/.m2/repository/com/atlassian/connect/atlassian-connect-spring-boot-core/5.1.0/atlassian-connect-spring-boot-core-5.1.0.jar!/com/atlassian/connect/spring/internal/auth/RequireAuthenticationHandlerInterceptor.class]: Unsatisfied dependency expressed through constructor parameter 1: Error creating bean with name 'forgeConnectMappingService' defined in URL [jar:file:/C:/Users/mohan/.m2/repository/com/atlassian/connect/atlassian-connect-spring-boot-core/5.1.0/atlassian-connect-spring-boot-core-5.1.0.jar!/com/atlassian/connect/spring/internal/auth/frc/ForgeConnectMappingService.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'atlassianHostMappingRepository' defined in com.atlassian.connect.spring.AtlassianHostMappingRepository defined in @EnableJpaRepositories declared on AtlassianJpaAutoConfiguration: Not a managed type: class com.atlassian.connect.spring.AtlassianHostMapping
Steps Taken:
- Updated the dependencies in
pom.xml
to the target versions. - Cleaned and rebuilt the project.
- Attempted to start the application, resulting in the above exception.
Request:
I would appreciate any guidance or suggestions to resolve this issue. If more information or a detailed stack trace is required, please let me know.
Thank you!