Uploaded image for project: 'Dev - Nexus'
  1. Dev - Nexus
  2. NEXUS-2216

group validation fails when its containg repository has a latter position in nexus.xml

    Details

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

      Description

      I staged a repository, then restarted nexus, got the following exception:

      After I moved the 'test-002' repo config before the 'public' group config in nexus.xml, it works.

      jvm 1    | Number of imports: 0
      jvm 1    | 
      jvm 1    | 
      jvm 1    | -----------------------------------------------------
      jvm 1    | 2009-06-26 22:34:13 ERROR - org.mortbay.log               - Failed startup of context org.mortbay.jetty.webapp.WebAppContext@f12b72{/nexus,../../../runtime/apps/nexus/webapp}
      jvm 1    | java.lang.IllegalStateException: Could not initialize Nexus.
      jvm 1    | 	at org.sonatype.nexus.web.NexusBooterListener.contextInitialized(NexusBooterListener.java:43)
      jvm 1    | 	at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
      jvm 1    | 	at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
      jvm 1    | 	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1234)
      jvm 1    | 	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
      jvm 1    | 	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:460)
      jvm 1    | 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      jvm 1    | 	at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
      jvm 1    | 	at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
      jvm 1    | 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      jvm 1    | 	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
      jvm 1    | 	at org.mortbay.jetty.Server.doStart(Server.java:222)
      jvm 1    | 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      jvm 1    | 	at org.sonatype.plexus.jetty.DefaultServletContainer.start(DefaultServletContainer.java:309)
      jvm 1    | 	at org.codehaus.plexus.personality.plexus.lifecycle.phase.StartPhase.execute(StartPhase.java:33)
      jvm 1    | 	at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:97)
      jvm 1    | 	at org.codehaus.plexus.component.manager.AbstractComponentManager.start(AbstractComponentManager.java:167)
      jvm 1    | 	at org.codehaus.plexus.component.builder.XBeanComponentBuilder.startComponentLifecycle(XBeanComponentBuilder.java:255)
      jvm 1    | 	at org.codehaus.plexus.component.builder.XBeanComponentBuilder.build(XBeanComponentBuilder.java:129)
      jvm 1    | 	at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:181)
      jvm 1    | 	at org.codehaus.plexus.component.manager.SingletonComponentManager.getComponent(SingletonComponentManager.java:67)
      jvm 1    | 	at org.codehaus.plexus.DefaultComponentRegistry.getComponent(DefaultComponentRegistry.java:329)
      jvm 1    | 	at org.codehaus.plexus.DefaultComponentRegistry.lookup(DefaultComponentRegistry.java:165)
      jvm 1    | 	at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:372)
      jvm 1    | 	at org.codehaus.plexus.DefaultPlexusContainer.initialize(DefaultPlexusContainer.java:585)
      jvm 1    | 	at org.codehaus.plexus.DefaultPlexusContainer.construct(DefaultPlexusContainer.java:275)
      jvm 1    | 	at org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:166)
      jvm 1    | 	at org.sonatype.appbooter.PlexusAppBooter.startContainer(PlexusAppBooter.java:332)
      jvm 1    | 	at org.sonatype.appbooter.PlexusAppBooterService.startContainer(PlexusAppBooterService.java:48)
      jvm 1    | 	at org.sonatype.appbooter.jsw.PlexusAppBooterJSWListener.start(PlexusAppBooterJSWListener.java:68)
      jvm 1    | 	at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)
      jvm 1    | Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup component 'org.sonatype.nexus.Nexus', it could not be started.
      jvm 1    |       role: org.sonatype.nexus.Nexus
      jvm 1    |   roleHint: default
      jvm 1    | classRealm: plexus.core
      jvm 1    | 	at org.codehaus.plexus.DefaultComponentRegistry.getComponent(DefaultComponentRegistry.java:344)
      jvm 1    | 	at org.codehaus.plexus.DefaultComponentRegistry.lookup(DefaultComponentRegistry.java:165)
      jvm 1    | 	at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:377)
      jvm 1    | 	at org.sonatype.nexus.web.NexusBooterListener.contextInitialized(NexusBooterListener.java:35)
      jvm 1    | 	... 30 more
      jvm 1    | Caused by: org.codehaus.plexus.component.repository.exception.ComponentLifecycleException: Error starting component
      jvm 1    | 	at org.codehaus.plexus.component.builder.XBeanComponentBuilder.startComponentLifecycle(XBeanComponentBuilder.java:257)
      jvm 1    | 	at org.codehaus.plexus.component.builder.XBeanComponentBuilder.build(XBeanComponentBuilder.java:129)
      jvm 1    | 	at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:181)
      jvm 1    | 	at org.codehaus.plexus.component.manager.SingletonComponentManager.getComponent(SingletonComponentManager.java:67)
      jvm 1    | 	at org.codehaus.plexus.DefaultComponentRegistry.getComponent(DefaultComponentRegistry.java:329)
      jvm 1    | 	... 33 more
      jvm 1    | Caused by: org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecutionException: Error starting component
      jvm 1    | 	at org.codehaus.plexus.personality.plexus.lifecycle.phase.StartPhase.execute(StartPhase.java:37)
      jvm 1    | 	at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:97)
      jvm 1    | 	at org.codehaus.plexus.component.manager.AbstractComponentManager.start(AbstractComponentManager.java:167)
      jvm 1    | 	at org.codehaus.plexus.component.builder.XBeanComponentBuilder.startComponentLifecycle(XBeanComponentBuilder.java:255)
      jvm 1    | 	... 37 more
      jvm 1    | Caused by: org.codehaus.plexus.personality.plexus.lifecycle.phase.StartingException: Could not start Nexus!
      jvm 1    | 	at org.sonatype.nexus.DefaultNexus.start(DefaultNexus.java:743)
      jvm 1    | 	at org.codehaus.plexus.personality.plexus.lifecycle.phase.StartPhase.execute(StartPhase.java:33)
      jvm 1    | 	... 40 more
      jvm 1    | Caused by: org.codehaus.plexus.personality.plexus.lifecycle.phase.StartingException: Could not start Nexus!
      jvm 1    | 	at org.sonatype.nexus.DefaultNexus.startService(DefaultNexus.java:845)
      jvm 1    | 	at org.sonatype.nexus.DefaultNexus.start(DefaultNexus.java:739)
      jvm 1    | 	... 41 more
      jvm 1    | Caused by: org.sonatype.nexus.configuration.validator.InvalidConfigurationException: Configuration is invalid!
      jvm 1    | Validation errors follows:
      jvm 1    |  o repositories - ResourceStore of type Repository with id='test-002' not found!
      jvm 1    | 
      jvm 1    | 	at org.sonatype.nexus.proxy.repository.AbstractGroupRepositoryConfigurator.doValidate(AbstractGroupRepositoryConfigurator.java:58)
      jvm 1    | 	at org.sonatype.nexus.proxy.repository.AbstractRepositoryConfigurator.validate(AbstractRepositoryConfigurator.java:52)
      jvm 1    | 	at org.sonatype.nexus.configuration.AbstractConfigurable.doValidateConfiguration(AbstractConfigurable.java:83)
      jvm 1    | 	at org.sonatype.nexus.configuration.AbstractConfigurable.validateConfiguration(AbstractConfigurable.java:46)
      jvm 1    | 	at org.sonatype.nexus.configuration.AbstractConfigurable.configure(AbstractConfigurable.java:52)
      jvm 1    | 	at org.sonatype.nexus.configuration.application.runtime.DefaultApplicationRuntimeConfigurationBuilder.createRepositoryFromModel(DefaultApplicationRuntimeConfigurationBuilder.java:46)
      jvm 1    | 	at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createRepositoryFromModel(DefaultNexusConfiguration.java:329)
      jvm 1    | 	at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createRepositories(DefaultNexusConfiguration.java:432)
      jvm 1    | 	at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createInternals(DefaultNexusConfiguration.java:412)
      jvm 1    | 	at org.sonatype.nexus.DefaultNexus.startService(DefaultNexus.java:775)
      jvm 1    | 	... 42 more
      jvm 1    | 2009-06-26 22:34:14 INFO  - org.mortbay.log               - Started SelectChannelConnector@0.0.0.0:8081
      
      

        Attachments

          Activity

            People

            • Assignee:
              cstamas Tamás Cservenák
              Reporter:
              juven Juven Xu
              Last Updated By:
              Rich Seddon
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Time Spent - 2h 25m Remaining Estimate - 1h 35m
                1h 35m
                Logged:
                Time Spent - 2h 25m Remaining Estimate - 1h 35m
                2h 25m