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

Not able to run the springboot application #5

Open
rgupta95 opened this issue May 4, 2024 · 0 comments
Open

Not able to run the springboot application #5

rgupta95 opened this issue May 4, 2024 · 0 comments

Comments

@rgupta95
Copy link

rgupta95 commented May 4, 2024

Hello @ilopezluna / eddumelendez Eddú Meléndez Gonzales),
I have installed docker desktop and daemon is working fine and i could see 3 images are pulled :
1.[langchain4j/ollama-llama2]
2.[pgvector/pgvector]
3.[testcontainers/ryuk]

However, I am getting below error when I run main class RagChatApplication springboot application

2024-05-05T02:44:36.259+05:30  WARN 7669 --- [  restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'embeddingsConfiguration' defined in file [/Users/apple/Downloads/genai-test-main/out/production/classes/com/example/ragchat/configurations/EmbeddingsConfiguration.class]: Unsatisfied dependency expressed through constructor parameter 0: No qualifying bean of type 'org.springframework.boot.autoconfigure.jdbc.JdbcConnectionDetails' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
2024-05-05T02:44:36.264+05:30  INFO 7669 --- [  restartedMain] o.apache.catalina.core.StandardService   : Stopping service [Tomcat]
2024-05-05T02:44:36.296+05:30  INFO 7669 --- [  restartedMain] .s.b.a.l.ConditionEvaluationReportLogger : 

Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2024-05-05T02:44:36.362+05:30 ERROR 7669 --- [  restartedMain] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 0 of constructor in com.example.ragchat.configurations.EmbeddingsConfiguration required a bean of type 'org.springframework.boot.autoconfigure.jdbc.JdbcConnectionDetails' that could not be found.


Action:

Consider defining a bean of type 'org.springframework.boot.autoconfigure.jdbc.JdbcConnectionDetails' in your configuration.


Process finished with exit code 0

Also I could see some build error in class EmbeddingsConfiguration for method contentRetriever - CustomRetriever.builder()
where error is 'Cannot resolve method 'builder' in 'CustomRetriever''
Can someone please help !!!

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

1 participant