org.jboss.weld.exceptions.DeploymentException with Pac4j 6.0.1 + jakartaee-pac4j 8.0.0

96 Views Asked by At

I am migrating jakartaee-pac4j from 7.1.0 to 8.0.0. Using pac4j-saml 6.0.1, shiro 1.13.0, buji-pac4j 9.0.0 with Java 17 and Payara 6.2024.1 Application Server.

I see this error while deploying the application, not sure what is wrong or what other changes i need to do.

  Exception while loading the app : CDI deployment failure:Exception List with 3 exceptions:
Exception 0 :
org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type Config with qualifiers @Default
  at injection point [BackedAnnotatedParameter] Parameter 1 of [BackedAnnotatedMethod] @Produces org.pac4j.jee.util.Pac4jProducer.getWebContext(Config, HttpServletRequest, HttpServletResponse)
  at org.pac4j.jee.util.Pac4jProducer.getWebContext(Pac4jProducer.java:0)

Exception 1 :
org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type Config with qualifiers @Default
  at injection point [BackedAnnotatedParameter] Parameter 1 of [BackedAnnotatedMethod] @Produces org.pac4j.jee.util.Pac4jProducer.getSessionStore(Config, HttpServletRequest, HttpServletResponse)
  at org.pac4j.jee.util.Pac4jProducer.getSessionStore(Pac4jProducer.java:0)

Exception 2 :
org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type Config with qualifiers @Default
  at injection point [BackedAnnotatedParameter] Parameter 1 of [BackedAnnotatedMethod] @Produces org.pac4j.jee.util.Pac4jProducer.getProfileManager(Config, WebContext, SessionStore)
  at org.pac4j.jee.util.Pac4jProducer.getProfileManager(Pac4jProducer.java:0)

Pleas help.

1

There are 1 best solutions below

6
jleleu On

It looks like the Config component cannot be found/injected. Do you still have somewhere: @Produces @ApplicationScoped Config buildConfiguration() {...?