我目前正在爲我們的服務器配置nexus。我遵循了所有必需的步驟步驟,但似乎我錯過了一些東西。無法啓動nexus:無法構建org.codehaus.plexus.util.xml.Xpp3Dom,因爲它沒有無參數構造函數
Java版本 「1.8.0_121」
關係版本 「3.2.1」
我的完整的日誌跟蹤低於:
jvm 1 | Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: com.google.inject.ProvisionException: Guice provision errors:
jvm 1 |
jvm 1 | 1) Error injecting: org.sonatype.nexus.DefaultNexus
jvm 1 | at ClassRealm[plexus.core, parent: null]
jvm 1 | at ClassRealm[plexus.core, parent: null]
jvm 1 | while locating org.sonatype.nexus.Nexus
jvm 1 |
jvm 1 | 1 error
jvm 1 | role: org.sonatype.nexus.Nexus
jvm 1 | roleHint:
jvm 1 | at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:238)
jvm 1 | at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:226)
jvm 1 | at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:220)
jvm 1 | at org.sonatype.nexus.web.NexusBooterListener.contextInitialized(NexusBooterListener.java:43)
jvm 1 | ... 41 more
jvm 1 | Caused by: com.google.inject.ProvisionException: Guice provision errors:
jvm 1 |
jvm 1 | 1) Error injecting: org.sonatype.nexus.DefaultNexus
jvm 1 | at ClassRealm[plexus.core, parent: null]
jvm 1 | at ClassRealm[plexus.core, parent: null]
jvm 1 | while locating org.sonatype.nexus.Nexus
jvm 1 |
jvm 1 | 1 error
jvm 1 | at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:952)
jvm 1 | at org.sonatype.guice.bean.locators.QualifiedBean.getValue(QualifiedBean.java:85)
jvm 1 | at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:55)
jvm 1 | at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:234)
jvm 1 | ... 44 more
jvm 1 | Caused by: com.google.inject.ProvisionException: Guice provision errors:
jvm 1 |
jvm 1 | 1) Error starting: class org.sonatype.nexus.DefaultNexus
jvm 1 | while locating org.sonatype.nexus.DefaultNexus
jvm 1 |
jvm 1 | 1 error
jvm 1 | at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:952)
jvm 1 | at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:978)
jvm 1 | at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
jvm 1 | at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
jvm 1 | at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
jvm 1 | at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:996)
jvm 1 | at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
jvm 1 | at com.google.inject.Scopes$1$1.get(Scopes.java:63)
jvm 1 | at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
jvm 1 | at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:943)
jvm 1 | at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:996)
jvm 1 | at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:939)
jvm 1 | ... 47 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:651)
jvm 1 | at org.codehaus.plexus.PlexusLifecycleManager.start(PlexusLifecycleManager.java:229)
jvm 1 | at org.codehaus.plexus.PlexusLifecycleManager.manage(PlexusLifecycleManager.java:145)
jvm 1 | at org.sonatype.guice.plexus.binders.PlexusBeanBinder.afterInjection(PlexusBeanBinder.java:79)
jvm 1 | at com.google.inject.internal.MembersInjectorImpl.notifyListeners(MembersInjectorImpl.java:97)
jvm 1 | at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:95)
jvm 1 | at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:253)
jvm 1 | at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:943)
jvm 1 | at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:996)
jvm 1 | at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:939)
jvm 1 | ... 58 more
jvm 1 | Caused by: com.thoughtworks.xstream.converters.ConversionException: Cannot construct org.codehaus.plexus.util.xml.Xpp3Dom as it does not have a no-args constructor : Cannot construct org.codehaus.plexus.util.xml.Xpp3Dom as it does not have a no-args constructor
jvm 1 | ---- Debugging information ----
jvm 1 | message : Cannot construct org.codehaus.plexus.util.xml.Xpp3Dom as it does not have a no-args constructor
jvm 1 | cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
jvm 1 | cause-message : Cannot construct org.codehaus.plexus.util.xml.Xpp3Dom as it does not have a no-args constructor
jvm 1 | class : org.sonatype.nexus.configuration.model.CRepository
jvm 1 | required-type : org.codehaus.plexus.util.xml.Xpp3Dom
jvm 1 | path : /org.sonatype.nexus.configuration.model.CRepository/externalConfiguration
jvm 1 | line number : 29
jvm 1 | -------------------------------
jvm 1 | at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
jvm 1 | at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
jvm 1 | at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
jvm 1 | at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:246)
jvm 1 | at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:218)
jvm 1 | at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:162)
jvm 1 | at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
jvm 1 | at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
jvm 1 | at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
jvm 1 | at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
jvm 1 | at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
jvm 1 | at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
jvm 1 | at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
jvm 1 | at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
jvm 1 | at com.thoughtworks.xstream.XStream.fromXML(XStream.java:853)
jvm 1 | at com.thoughtworks.xstream.XStream.fromXML(XStream.java:845)
jvm 1 | at org.sonatype.nexus.configuration.model.AbstractRevertableConfiguration.copyObject(AbstractRevertableConfiguration.java:85)
jvm 1 | at org.sonatype.nexus.configuration.model.AbstractRevertableConfiguration.getConfiguration(AbstractRevertableConfiguration.java:28)
jvm 1 | at org.sonatype.nexus.configuration.model.CRepositoryCoreConfiguration.getConfiguration(CRepositoryCoreConfiguration.java:39)
jvm 1 | at org.sonatype.nexus.proxy.repository.ConfigurableRepository.getCurrentConfiguration(ConfigurableRepository.java:25)
jvm 1 | at org.sonatype.nexus.proxy.repository.ConfigurableRepository.getCurrentConfiguration(ConfigurableRepository.java:17)
jvm 1 | at org.sonatype.nexus.configuration.AbstractConfigurable.configure(AbstractConfigurable.java:153)
jvm 1 | at org.sonatype.nexus.configuration.application.runtime.DefaultApplicationRuntimeConfigurationBuilder.createRepositoryFromModel(DefaultApplicationRuntimeConfigurationBuilder.java:46)
jvm 1 | at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.instantiateRepository(DefaultNexusConfiguration.java:506)
jvm 1 | at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createRepositories(DefaultNexusConfiguration.java:472)
jvm 1 | at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createInternals(DefaultNexusConfiguration.java:454)
jvm 1 | at org.sonatype.nexus.DefaultNexus.startService(DefaultNexus.java:685)
jvm 1 | at org.sonatype.nexus.DefaultNexus.start(DefaultNexus.java:647)
jvm 1 | ... 67 more
jvm 1 | Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct org.codehaus.plexus.util.xml.Xpp3Dom as it does not have a no-args constructor
jvm 1 | at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.newInstance(PureJavaReflectionProvider.java:71)
jvm 1 | at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:308)
jvm 1 | at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:161)
jvm 1 | at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
jvm 1 | ... 94 more
jvm 1 | 2017-07-06 13:29:19 INFO [er_start_runner] - org.mortbay.log - Started [email protected]:8081
你應該接受@ rseddon的回答 – Stewart