Injektion von HttpServletRequest

Ich bin mit ejb 3 und versuchen, zu @Inject HttpServletRequest, aber während der Bereitstellung von I auftreten, Ausnahme.

Code:

@Inject private HttpServletRequest httpRequest;

Ausnahme:

org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [HttpServletRequest] with qualifiers [@Default] at injection point [[field] @Inject private com.kmware.ttk.highway.beans.session.UserSessionBean.httpRequest]

Was könnte ich tun?

Schreibe einen Kommentar