You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The @produces allows the following, for instance: @Inject HttpServletRequest request;
However, if any other part of the app (Seam Solder, in my case) also produces that, the app won't start (see Exception below). There's no way around it that I know of , without either changing the source of vaadin-cdi-integration or Seam Solder.
Is the @produces really needed here? (I don't see any @Inject usages). If it is deemed needed, perhaps it could be qualified? It would be nice to allow Seam Solder to be used along side vaadin-cdi, and Seam solder is not likely to remove it, I think...
Exceptions:
org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [HttpServletRequest] with qualifiers [@default] at injection point [[field] @Inject private org.jboss.solder.servlet.http.RequestParamProducer.request]. Possible dependencies [[Producer Method [HttpServletRequest] with qualifiers [@Any @default] declared as [[method] @produces@typed @RequestScoped protected org.jboss.solder.servlet.http.ImplicitHttpServletObjectsProducer.getHttpServletRequest()], Producer Method [HttpServletRequest] with qualifiers [@Any @default] declared as [[method] @produces @RequestScoped public static com.vaadin.cdi.component.JaasTools.getCurrentRequest()]]]
The text was updated successfully, but these errors were encountered:
JaasTools contains:
@produces
@RequestScoped
public static HttpServletRequest getCurrentRequest() {
HttpServletRequest request = VaadinServletService
.getCurrentServletRequest();
getLogger().info("Getting request " + request);
The @produces allows the following, for instance:
@Inject HttpServletRequest request;
However, if any other part of the app (Seam Solder, in my case) also produces that, the app won't start (see Exception below). There's no way around it that I know of , without either changing the source of vaadin-cdi-integration or Seam Solder.
Is the @produces really needed here? (I don't see any @Inject usages). If it is deemed needed, perhaps it could be qualified? It would be nice to allow Seam Solder to be used along side vaadin-cdi, and Seam solder is not likely to remove it, I think...
Exceptions:
org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [HttpServletRequest] with qualifiers [@default] at injection point [[field] @Inject private org.jboss.solder.servlet.http.RequestParamProducer.request]. Possible dependencies [[Producer Method [HttpServletRequest] with qualifiers [@Any @default] declared as [[method] @produces @typed @RequestScoped protected org.jboss.solder.servlet.http.ImplicitHttpServletObjectsProducer.getHttpServletRequest()], Producer Method [HttpServletRequest] with qualifiers [@Any @default] declared as [[method] @produces @RequestScoped public static com.vaadin.cdi.component.JaasTools.getCurrentRequest()]]]
The text was updated successfully, but these errors were encountered: