How to resolve Unsatisfied dependency exception #32344
abhishekDautomator
started this conversation in
Community
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
-
Iam getting unsatisfied dependency injection when i make encrypted war and run it .. but when iam executing in the sts iaam not getting this issue. Java 8 and using extentreport dependency.. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am new to the Quarkus framework and I am stuck with the below error. Any suggestion would be very helpful on where is the issue.
Error:
[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type org.abhishek.dao.PersonRepository and qualifiers [@Default] - java member: org.abhishek.resource.PersonResource#repository - declared on CLASS bean [types=[org.abhishek.resource.PersonResource, java.lang.Object], qualifiers=[@Default, @Any], target=org.abhishek.resource.PersonResource]
Entity:
`@Entity
@table(name = "persons")
public class PersonEntity {
}`
Repository:
public interface PersonRepository extends PanacheRepository<PersonEntity> { }
Resource:
`@ApplicationScoped
@path("/persons")
public class PersonResource {
}`
I am trying to run my application and connect to the Postgres DB I am running locally on port 5432. The application should be able to connect to the DB and create persons table and I would be able to hit the APIs configured. But getting the above error, which I am not able to resolve.
Beta Was this translation helpful? Give feedback.
All reactions