archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Venisse <emman...@venisse.net>
Subject Re: NullPointerExcetion while starting up archiva 'command-line', jetty, and tomcat.
Date Tue, 27 Feb 2007 15:31:22 GMT
You can fix this problem by creating a little archiva.xml file in ${user.home}/.m2/ that contain
only <configuration/>

Emmanuel

Barry Egbert a écrit :
> I get the following exception while trying to run the archiva-webapp 
> module.
> 
> 2007-02-27 08:14:42.746::WARN:  Failed startup of context
> org.mortbay.jetty.webapp.WebAppContext@65b197{/,/Users/barryegbert/Projects/Personal/archiva-site/archiva-webapp/src/main/webapp}

> 
> java.lang.NullPointerException: configuration can not be null
>        at 
> org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry.<init>(CommonsConfigurationRegistry.java:89)

> 
>        at 
> org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry.getSection(CommonsConfigurationRegistry.java:422)

> 
>        at 
> org.apache.maven.archiva.configuration.DefaultArchivaConfiguration.addChangeListener(DefaultArchivaConfiguration.java:84)

> 
>        at 
> org.apache.maven.archiva.repositories.DefaultActiveManagedRepositories.initialize(DefaultActiveManagedRepositories.java:201)

> 
>        at 
> org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializePhase.execute(InitializePhase.java:33)

> 
>        at 
> org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:130)

> 
>        at 
> org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:143)

> 
>        at 
> org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:133)

> 
>        at 
> org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:87)

> 
>        at 
> org.codehaus.plexus.DefaultComponentLookupManager.lookup(DefaultComponentLookupManager.java:101)

> 
>        at 
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:310) 
> 
>        at 
> org.codehaus.plexus.component.composition.AbstractComponentComposer.findRequirement(AbstractComponentComposer.java:235)

> 
>        at 
> org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:67)

> 
>        at 
> org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirement(FieldComponentComposer.java:58)

> 
>        at 
> org.codehaus.plexus.component.composition.AbstractComponentComposer.assembleComponent(AbstractComponentComposer.java:144)

> 
>        at 
> org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:73)

> 
>        at 
> org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:46)

> 
>        at 
> org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:130)

> 
>        at 
> org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:143)

> 
>        at 
> org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:133)

> 
>        at 
> org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:87)

> 
>        at 
> org.codehaus.plexus.DefaultComponentLookupManager.lookup(DefaultComponentLookupManager.java:101)

> 
>        at 
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:310) 
> 
>        at 
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:291) 
> 
>        at 
> org.codehaus.plexus.container.initialization.StartLoadOnStartComponentsPhase.execute(StartLoadOnStartComponentsPhase.java:54)

> 
>        at 
> org.codehaus.plexus.DefaultPlexusContainer.initializePhases(DefaultPlexusContainer.java:895)

> 
>        at 
> org.codehaus.plexus.DefaultPlexusContainer.initialize(DefaultPlexusContainer.java:843)

> 
>        at 
> org.codehaus.plexus.DefaultPlexusContainer.construct(DefaultPlexusContainer.java:820)

> 
>        at 
> org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:222)

> 
>        at 
> org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:236)

> 
>        at 
> org.codehaus.plexus.xwork.PlexusLifecycleListener.contextInitialized(PlexusLifecycleListener.java:76)

> 
>        at 
> org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:511) 
> 
>        at org.mortbay.jetty.servlet.Context.startContext(Context.java:135)
>        at 
> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1191) 
> 
>        at 
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:481)
>        at 
> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:434)
>        at 
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>        at 
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147) 
> 
>        at 
> org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:120)

> 
>        at 
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>        at 
> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147) 
> 
>        at 
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>        at 
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
>        at org.mortbay.jetty.Server.doStart(Server.java:210)
>        at 
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
>        at 
> org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:134) 
> 
>        at 
> org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:332) 
> 
>        at 
> org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:277) 
> 
>        at 
> org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:195)

> 
>        at 
> org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:183)
>        at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:420)

> 
>        at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)

> 
>        at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)

> 
>        at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)

> 
>        at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)

> 
>        at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)

> 
>        at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)

> 
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
> 
>        at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

> 
>        at java.lang.reflect.Method.invoke(Method.java:585)
>        at 
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>        at 
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> 2007-02-27 08:14:42.768::INFO:  Started SelectChannelConnector @ 
> 0.0.0.0:9091
> 
> What am I missing? Thanks in advance.


Mime
View raw message