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

fix(jans-scim): startup issues #1459

Closed
jgomer2001 opened this issue May 26, 2022 · 1 comment
Closed

fix(jans-scim): startup issues #1459

jgomer2001 opened this issue May 26, 2022 · 1 comment
Assignees
Labels
area-CI Issue or changes required in automatic builds or CI infrastructure comp-jans-scim Component affected by issue or PR kind-bug Issue or PR is a bug in existing functionality

Comments

@jgomer2001
Copy link
Contributor

Service not starting, seeing this in logs

org.jboss.weld.exceptions.DeploymentException: WELD-001409: Ambiguous dependencies for type SmtpConfiguration with qualifiers @Default|  at injection point [BackedAnnotatedField] @Inject private io.jans.service.MailService.smtpConfiguration|  at io.jans.service.MailService.smtpConfiguration(MailService.java:0)|  Possible dependencies: |  - Producer Method [SmtpConfiguration] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @RequestScoped public io.jans.scim.service.ApplicationFactory.getSmtpConfiguration()],|  - Producer Method [SmtpConfiguration] with qualifiers [@Any @Default] declared as [[BackedAnnotatedMethod] @Produces @RequestScoped public io.jans.as.common.service.common.ApplicationFactory.getSmtpConfiguration()]|
	at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:386)
	at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:290)
	at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:143)
	at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:164)
	at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:526)
	at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:64)
	at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:62)
	at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:62)
	at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:55)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
@jgomer2001 jgomer2001 self-assigned this May 26, 2022
@mo-auto mo-auto added area-CI Issue or changes required in automatic builds or CI infrastructure comp-jans-scim Component affected by issue or PR kind-bug Issue or PR is a bug in existing functionality labels May 26, 2022
@jgomer2001
Copy link
Contributor Author

These problem was introduced with the addition of jans-auth-common dependency as part of solution of issue #1145 . This brought a series of CDI dependency problems. It's better to have a ExternalIdGeneratorService class inside jans-scim project instead of reusing the jans-auth-common one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-CI Issue or changes required in automatic builds or CI infrastructure comp-jans-scim Component affected by issue or PR kind-bug Issue or PR is a bug in existing functionality
Projects
None yet
Development

No branches or pull requests

2 participants