Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-9454

SecurityContext not injected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 11.0.0.CR1
    • CDI / Weld, Security
    • None
    • Hide

      In stateless session bean:

      import javax.inject.Inject;
      import javax.security.enterprise.SecurityContext;
      ...
      @Inject
      private SecurityContext securityContext;

      Show
      In stateless session bean: import javax.inject.Inject; import javax.security.enterprise.SecurityContext; ... @Inject private SecurityContext securityContext;

    Description

      11:49:28,341 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."foo-1.0.ear".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."foo-1.0.ear".WeldStartService: Failed to start service
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1978)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type SecurityContext with qualifiers @Default
      at injection point [BackedAnnotatedField] @Inject private com.foo.bar.facade.impl.UserRegisterFacadeImpl.securityContext

      it's copy issue WELD-2437

      Attachments

        Activity

          People

            darran.lofthouse@redhat.com Darran Lofthouse
            sphaera_jira Mike Kachalov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: