Issue
After upgrading from 22.2.x to 22.3.x, the Deploy fails to start with the following error:
Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'awsS3
Environment RepositoryFactory' defined in class path resource [org/springframework/cloud/
config/server/config/EnvironmentRepositoryConfiguration$AwsS3FactoryConfig.class]: Bean
instantiation via factory method failed; nested exception is org.springframework.beans.
BeanInstantiationException: Failed to instantiate [org.springframework.cloud.config.server.
environment.AwsS3EnvironmentRepositoryFactory]: Factory method 'awsS3EnvironmentRepository
Factory' threw exception; nested exception is java.lang.NoClassDefFoundError: com/amazonaws/
services/s3/AmazonS3ClientBuilder
Affected Products & Versions
Deploy 22.3.x
Cause
The issue is caused by the plugin xld-codepipeline-plugin(xld-codepipeline-plugin-6.0.0.xldp). It bundles older version of aws-sdk jar which is causing this issue.
Workaround/Resolution Action
As a temporary workaround, you can try adding the following libraries to the Deploy_Home/lib directory:
Or remove the xld-codepipeline-plugin-6.0.0.xldp and then perform the upgrade.
Considerations
D-24625
Comments
Please sign in to leave a comment.