Uploaded image for project: 'Fedora Repository Project'
  1. Fedora Repository Project
  2. FCREPO-2798

Maven Jetty:Run UnavailableSecurityManagerException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Fedora 5.0.0
    • Component/s: webac
    • Labels:

      Description

      On master, when running:

      > mvn jetty:run -pl fcrepo-webapp

      The following error is through (see attachment for full output):

      ===

      ERROR 18:32:36.192 (AuthenticationProviders) Exception in the "org.fcrepo.auth.common.ShiroAuthenticationProvider" authentication provider for repository "repo": No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton. This is an invalid application configuration.
      org.apache.shiro.UnavailableSecurityManagerException: No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton. This is an invalid application configuration.
      at org.apache.shiro.SecurityUtils.getSecurityManager(SecurityUtils.java:123)
      at org.apache.shiro.subject.Subject$Builder.<init>(Subject.java:626)
      at org.apache.shiro.SecurityUtils.getSubject(SecurityUtils.java:56)
      at org.fcrepo.auth.common.ShiroAuthenticationProvider.authenticate(ShiroAuthenticationProvider.java:40)
      at org.modeshape.jcr.security.AuthenticationProviders.authenticate(AuthenticationProviders.java:57)jetty-run-error.txt
      at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:655)
      at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:593)
      at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:139)
      at org.fcrepo.kernel.modeshape.FedoraRepositoryImpl.login(FedoraRepositoryImpl.java:48)
      at org.fcrepo.kernel.modeshape.observer.SimpleObserver.buildListener(SimpleObserver.java:196)

      ===

       

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dbernstein Danny Bernstein
              Reporter:
              awoods Andrew Woods
              Reviewer:
              Andrew Woods
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: