Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Atlassian Connect Spring boot with DynamoDB

Hardik Shingala
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 27, 2019

Hello All,

 

I am developing an add-on for Jira Cloud using Atlassian connect spring boot and for the database, I am using dynamoDB.

While deploying this I am getting following error: 

expected single matching bean but found 2: dynamoAtlassianHostRepository,atlassianHostRepository

So here it is creating 2 beans and due to that I am getting: 

***************************

APPLICATION FAILED TO START

***************************

 

Description:

 

atlassian-connect-spring-boot requires a bean of type 'com.atlassian.connect.spring.AtlassianHostRepository' that could not be found. This repository is used for storing installation data.

 

Action:

 

Choose a Spring Data implementation to use with AtlassianHostRepository, and enable Repository scanning with the appropriate @Enable${store}Repositories annotation. If you choose Spring Data JPA, consider using atlassian-connect-spring-boot-jpa-starter.

 

I have added 

@EnableDynamoDBRepositories("jira.cloud.plugin.dynamo")

 

This package contains one class which implements AtlassianHostRepository.

Other than this I have used SelfAuthenticationTokenGenerator and AtlassianHostRestClients using Autowire.

 

How can I resolve this issue?

1 answer

0 votes
Artem Grotskyi
Contributor
May 2, 2019

Hi @Hardik Shingala , 

did you manage to find a solution?

I'm facing the same problem at the moment.

Thanks,
Artem

Suggest an answer

Log in or Sign up to answer