Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2437

SecurityContext not injected

    XMLWordPrintable

Details

    • 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            sphaera_jira Mike Kachalov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: