java.lang.IllegalStateException: Could not configure JSecurity to protect resource mounted to /repo_groups/{groupId}/index_content of class org.sonatype.nexus.rest.groups.GroupIndexContentPlexusResource

Sonatype JIRA | Kristine O'Connor | 8 years ago
  1. 0

    Downloaded the latest build from the trunk, and there is an error appearing when starting the server. 2008-10-21 09:00:37.593 INFO [WrapperListener_start_runner:] - org.sonatype.jsecurity.web.PlexusConfiguration: Adding new protected resource with path='/service/*/repo_groups/*/index_content**' and filterExpression='authcBasic,tgiperms' 2008-10-21 09:00:37.593 ERROR [WrapperListener_start_runner:] - /nexus: nexus: Error during the starting of the Restlet Application java.lang.IllegalStateException: Could not configure JSecurity to protect resource mounted to /repo_groups/{groupId}/index_content of class org.sonatype.nexus.rest.groups.GroupIndexContentPlexusResource at org.sonatype.nexus.rest.NexusApplication.handlePlexusResourceSecurity(NexusApplication.java:287) at org.sonatype.plexus.rest.PlexusRestletApplicationBridge.attach(PlexusRestletApplicationBridge.java:223) at org.sonatype.plexus.rest.PlexusRestletApplicationBridge.recreateRoot(PlexusRestletApplicationBridge.java:183) at org.sonatype.plexus.rest.PlexusRestletApplicationBridge.createRoot(PlexusRestletApplicationBridge.java:114) at org.restlet.Application.getRoot(Application.java:303) at com.noelios.restlet.application.ApplicationHelper.start(ApplicationHelper.java:139) at org.restlet.Application.start(Application.java:490) at com.noelios.restlet.ext.servlet.ServerServlet.init(ServerServlet.java:815) at javax.servlet.GenericServlet.init(GenericServlet.java:241) at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:433) at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:256) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:616) at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:222) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.sonatype.plexus.jetty.DefaultServletContainer.start(DefaultServletContainer.java:250) at org.codehaus.plexus.personality.plexus.lifecycle.phase.StartPhase.execute(StartPhase.java:33) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:97) at org.codehaus.plexus.component.builder.XBeanComponentBuilder.startComponentLifecycle(XBeanComponentBuilder.java:219) at org.codehaus.plexus.component.builder.XBeanComponentBuilder.build(XBeanComponentBuilder.java:97) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:135) at org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:96) at org.codehaus.plexus.DefaultComponentLookupManager.lookup(DefaultComponentLookupManager.java:147) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:486) at org.codehaus.plexus.container.initialization.StartLoadOnStartComponentsPhase.execute(StartLoadOnStartComponentsPhase.java:69) at org.codehaus.plexus.DefaultPlexusContainer.initializePhases(DefaultPlexusContainer.java:851) at org.codehaus.plexus.DefaultPlexusContainer.initialize(DefaultPlexusContainer.java:815) at org.codehaus.plexus.DefaultPlexusContainer.construct(DefaultPlexusContainer.java:407) at org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:198) at org.sonatype.appbooter.PlexusContainerHost.startContainer(PlexusContainerHost.java:241) at org.sonatype.appbooter.jsw.PlexusJSWListener.start(PlexusJSWListener.java:101) at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788) Caused by: org.sonatype.jsecurity.web.SecurityConfigurationException: Could not apply changes! at org.sonatype.jsecurity.web.PlexusConfiguration.addProtectedResource(PlexusConfiguration.java:379) at org.sonatype.nexus.rest.NexusApplication.handlePlexusResourceSecurity(NexusApplication.java:282) ... 42 more Caused by: org.jsecurity.config.ConfigurationException: Path [/service/*/repo_groups/*/index_content**] specified a filter named 'tgiperms', but that filter has not been specified in the [filters] section. at org.sonatype.jsecurity.web.PlexusConfiguration.getPathFilters(PlexusConfiguration.java:340) at org.sonatype.jsecurity.web.PlexusConfiguration.addProtectedResource(PlexusConfiguration.java:375) ... 43 more 2008-10-21 09:00:38.187 INFO [WrapperListener_start_runner:] - org.mortbay.log: Started SelectChannelConnector@0.0.0.0:8081 2008-10-21 09:00:54.093 INFO [WrapperListener_stop_runner:] - org.sonatype.jsecurity.web.PlexusConfiguration: Adding new protected resource with path='/content/**' and filterExpression='contentAuthcBasic,contentTperms'

    Sonatype JIRA | 8 years ago | Kristine O'Connor
    java.lang.IllegalStateException: Could not configure JSecurity to protect resource mounted to /repo_groups/{groupId}/index_content of class org.sonatype.nexus.rest.groups.GroupIndexContentPlexusResource
  2. 0

    Downloaded the latest build from the trunk, and there is an error appearing when starting the server. 2008-10-21 09:00:37.593 INFO [WrapperListener_start_runner:] - org.sonatype.jsecurity.web.PlexusConfiguration: Adding new protected resource with path='/service/*/repo_groups/*/index_content**' and filterExpression='authcBasic,tgiperms' 2008-10-21 09:00:37.593 ERROR [WrapperListener_start_runner:] - /nexus: nexus: Error during the starting of the Restlet Application java.lang.IllegalStateException: Could not configure JSecurity to protect resource mounted to /repo_groups/{groupId}/index_content of class org.sonatype.nexus.rest.groups.GroupIndexContentPlexusResource at org.sonatype.nexus.rest.NexusApplication.handlePlexusResourceSecurity(NexusApplication.java:287) at org.sonatype.plexus.rest.PlexusRestletApplicationBridge.attach(PlexusRestletApplicationBridge.java:223) at org.sonatype.plexus.rest.PlexusRestletApplicationBridge.recreateRoot(PlexusRestletApplicationBridge.java:183) at org.sonatype.plexus.rest.PlexusRestletApplicationBridge.createRoot(PlexusRestletApplicationBridge.java:114) at org.restlet.Application.getRoot(Application.java:303) at com.noelios.restlet.application.ApplicationHelper.start(ApplicationHelper.java:139) at org.restlet.Application.start(Application.java:490) at com.noelios.restlet.ext.servlet.ServerServlet.init(ServerServlet.java:815) at javax.servlet.GenericServlet.init(GenericServlet.java:241) at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:433) at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:256) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:616) at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:222) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.sonatype.plexus.jetty.DefaultServletContainer.start(DefaultServletContainer.java:250) at org.codehaus.plexus.personality.plexus.lifecycle.phase.StartPhase.execute(StartPhase.java:33) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:97) at org.codehaus.plexus.component.builder.XBeanComponentBuilder.startComponentLifecycle(XBeanComponentBuilder.java:219) at org.codehaus.plexus.component.builder.XBeanComponentBuilder.build(XBeanComponentBuilder.java:97) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:135) at org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:96) at org.codehaus.plexus.DefaultComponentLookupManager.lookup(DefaultComponentLookupManager.java:147) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:486) at org.codehaus.plexus.container.initialization.StartLoadOnStartComponentsPhase.execute(StartLoadOnStartComponentsPhase.java:69) at org.codehaus.plexus.DefaultPlexusContainer.initializePhases(DefaultPlexusContainer.java:851) at org.codehaus.plexus.DefaultPlexusContainer.initialize(DefaultPlexusContainer.java:815) at org.codehaus.plexus.DefaultPlexusContainer.construct(DefaultPlexusContainer.java:407) at org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:198) at org.sonatype.appbooter.PlexusContainerHost.startContainer(PlexusContainerHost.java:241) at org.sonatype.appbooter.jsw.PlexusJSWListener.start(PlexusJSWListener.java:101) at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788) Caused by: org.sonatype.jsecurity.web.SecurityConfigurationException: Could not apply changes! at org.sonatype.jsecurity.web.PlexusConfiguration.addProtectedResource(PlexusConfiguration.java:379) at org.sonatype.nexus.rest.NexusApplication.handlePlexusResourceSecurity(NexusApplication.java:282) ... 42 more Caused by: org.jsecurity.config.ConfigurationException: Path [/service/*/repo_groups/*/index_content**] specified a filter named 'tgiperms', but that filter has not been specified in the [filters] section. at org.sonatype.jsecurity.web.PlexusConfiguration.getPathFilters(PlexusConfiguration.java:340) at org.sonatype.jsecurity.web.PlexusConfiguration.addProtectedResource(PlexusConfiguration.java:375) ... 43 more 2008-10-21 09:00:38.187 INFO [WrapperListener_start_runner:] - org.mortbay.log: Started SelectChannelConnector@0.0.0.0:8081 2008-10-21 09:00:54.093 INFO [WrapperListener_stop_runner:] - org.sonatype.jsecurity.web.PlexusConfiguration: Adding new protected resource with path='/content/**' and filterExpression='contentAuthcBasic,contentTperms'

    Sonatype JIRA | 8 years ago | Kristine O'Connor
    java.lang.IllegalStateException: Could not configure JSecurity to protect resource mounted to /repo_groups/{groupId}/index_content of class org.sonatype.nexus.rest.groups.GroupIndexContentPlexusResource

    Root Cause Analysis

    1. org.jsecurity.config.ConfigurationException

      Path [/service/*/repo_groups/*/index_content**] specified a filter named 'tgiperms', but that filter has not been specified in the [filters] section.

      at org.sonatype.jsecurity.web.PlexusConfiguration.getPathFilters()
    2. org.sonatype.jsecurity
      PlexusConfiguration.addProtectedResource
      1. org.sonatype.jsecurity.web.PlexusConfiguration.getPathFilters(PlexusConfiguration.java:340)
      2. org.sonatype.jsecurity.web.PlexusConfiguration.addProtectedResource(PlexusConfiguration.java:375)
      2 frames
    3. Nexus Core
      NexusApplication.handlePlexusResourceSecurity
      1. org.sonatype.nexus.rest.NexusApplication.handlePlexusResourceSecurity(NexusApplication.java:282)
      1 frame
    4. ${project.groupId}:${project.artifactId}
      PlexusRestletApplicationBridge.createRoot
      1. org.sonatype.plexus.rest.PlexusRestletApplicationBridge.attach(PlexusRestletApplicationBridge.java:223)
      2. org.sonatype.plexus.rest.PlexusRestletApplicationBridge.recreateRoot(PlexusRestletApplicationBridge.java:183)
      3. org.sonatype.plexus.rest.PlexusRestletApplicationBridge.createRoot(PlexusRestletApplicationBridge.java:114)
      3 frames
    5. org.restlet
      Application.getRoot
      1. org.restlet.Application.getRoot(Application.java:303)
      1 frame
    6. com.noelios.restlet
      ApplicationHelper.start
      1. com.noelios.restlet.application.ApplicationHelper.start(ApplicationHelper.java:139)
      1 frame
    7. org.restlet
      Application.start
      1. org.restlet.Application.start(Application.java:490)
      1 frame
    8. com.noelios.restlet
      ServerServlet.init
      1. com.noelios.restlet.ext.servlet.ServerServlet.init(ServerServlet.java:815)
      1 frame
    9. JavaServlet
      GenericServlet.init
      1. javax.servlet.GenericServlet.init(GenericServlet.java:241)
      1 frame
    10. Jetty Server
      ServletHolder.doStart
      1. org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:433)
      2. org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:256)
      2 frames
    11. Jetty Util
      AbstractLifeCycle.start
      1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
      1 frame
    12. Jetty Server
      WebAppContext.doStart
      1. org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:616)
      2. org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
      3. org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220)
      4. org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513)
      5. org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
      5 frames
    13. Jetty Util
      AbstractLifeCycle.start
      1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
      1 frame
    14. Jetty Server
      ContextHandlerCollection.doStart
      1. org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
      2. org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
      2 frames
    15. Jetty Util
      AbstractLifeCycle.start
      1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
      1 frame
    16. Jetty Server
      HandlerCollection.doStart
      1. org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
      1 frame
    17. Jetty Util
      AbstractLifeCycle.start
      1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
      1 frame
    18. Jetty Server
      Server.doStart
      1. org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
      2. org.mortbay.jetty.Server.doStart(Server.java:222)
      2 frames
    19. Jetty Util
      AbstractLifeCycle.start
      1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
      1 frame
    20. org.sonatype.plexus
      DefaultServletContainer.start
      1. org.sonatype.plexus.jetty.DefaultServletContainer.start(DefaultServletContainer.java:250)
      1 frame
    21. Plexus
      DefaultPlexusContainer.<init>
      1. org.codehaus.plexus.personality.plexus.lifecycle.phase.StartPhase.execute(StartPhase.java:33)
      2. org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:97)
      3. org.codehaus.plexus.component.builder.XBeanComponentBuilder.startComponentLifecycle(XBeanComponentBuilder.java:219)
      4. org.codehaus.plexus.component.builder.XBeanComponentBuilder.build(XBeanComponentBuilder.java:97)
      5. org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:135)
      6. org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:96)
      7. org.codehaus.plexus.DefaultComponentLookupManager.lookup(DefaultComponentLookupManager.java:147)
      8. org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:486)
      9. org.codehaus.plexus.container.initialization.StartLoadOnStartComponentsPhase.execute(StartLoadOnStartComponentsPhase.java:69)
      10. org.codehaus.plexus.DefaultPlexusContainer.initializePhases(DefaultPlexusContainer.java:851)
      11. org.codehaus.plexus.DefaultPlexusContainer.initialize(DefaultPlexusContainer.java:815)
      12. org.codehaus.plexus.DefaultPlexusContainer.construct(DefaultPlexusContainer.java:407)
      13. org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:198)
      13 frames
    22. org.sonatype.appbooter
      PlexusJSWListener.start
      1. org.sonatype.appbooter.PlexusContainerHost.startContainer(PlexusContainerHost.java:241)
      2. org.sonatype.appbooter.jsw.PlexusJSWListener.start(PlexusJSWListener.java:101)
      2 frames
    23. Java Service Wrapper
      WrapperManager$12.run
      1. org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
      1 frame