Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue stating of server #1

Open
phanishankar-m opened this issue Mar 19, 2024 · 1 comment
Open

Issue stating of server #1

phanishankar-m opened this issue Mar 19, 2024 · 1 comment

Comments

@phanishankar-m
Copy link

Hello Team,

When we start the server It always asks for datasource for mongo. Can you please help with this. Below is the issue

Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'jobLauncher' defined in class path resource [com/liverpool/catalog/batch/config/BatchJobConfiguration.class]: Unsatisfied dependency expressed through method 'jobLauncher' parameter 0: Error creating bean with name 'jobRepository': Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'

Thanks,
Phani

@fmbenhassine
Copy link
Collaborator

Hi, thank you for opening this issue. Can you please provide a complete example that shows the problem? I am not able to reproduce the issue in https://github.com/spring-projects/spring-batch/blob/main/spring-batch-core/src/test/java/org/springframework/batch/core/repository/support/MongoDBJobRepositoryIntegrationTests.java, which does not ask for a datasource.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants