java.lang.IllegalStateException: Could not initialize Nexus.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Sonatype JIRA by Deleted User, 1 year ago
Could not initialize Nexus.
via Sonatype JIRA by Deleted User, 1 year ago
Could not initialize Nexus.
via Sonatype JIRA by Eric Dalquist, 1 year ago
Could not initialize Nexus.
via Sonatype JIRA by Marvin Herman Froeder, 1 year ago
Could not initialize Nexus.
via Sonatype JIRA by Eric Dalquist, 1 year ago
Could not initialize Nexus.
via Sonatype JIRA by Martin Meinhold [Atlassian], 1 year ago
Could not start Nexus
java.lang.IllegalStateException: Could not initialize Nexus.
at net.sf.ehcache.config.CacheConfiguration.setName(CacheConfiguration.java:163)
at net.sf.ehcache.Cache.setName(Cache.java:1696)
at net.sf.ehcache.CacheManager.addCache(CacheManager.java:618)
at org.sonatype.nexus.proxy.cache.EhCacheCacheManager.getPathCache(EhCacheCacheManager.java:47)
at org.sonatype.nexus.proxy.repository.AbstractRepository.getNotFoundCache(AbstractRepository.java:333)
at org.sonatype.nexus.proxy.repository.DefaultRepositoryConfigurator.updateRepositoryFromModel(DefaultRepositoryConfigurator.java:212)
at org.sonatype.nexus.proxy.maven.AbstractMavenRepositoryConfigurator.updateRepositoryFromModel(AbstractMavenRepositoryConfigurator.java:33)
at org.sonatype.nexus.proxy.maven.maven2.M2RepositoryConfigurator.updateRepositoryFromModel(M2RepositoryConfigurator.java:36)
at org.sonatype.nexus.configuration.application.runtime.DefaultApplicationRuntimeConfigurationBuilder.updateRepositoryFromModel(DefaultApplicationRuntimeConfigurationBuilder.java:120)
at org.sonatype.nexus.configuration.application.runtime.DefaultApplicationRuntimeConfigurationBuilder.createRepositoryFromModel(DefaultApplicationRuntimeConfigurationBuilder.java:82)
at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createRepositoryFromModel(DefaultNexusConfiguration.java:327)
at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createRepositories(DefaultNexusConfiguration.java:459)
at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createInternals(DefaultNexusConfiguration.java:439)
at org.sonatype.nexus.DefaultNexus.startService(DefaultNexus.java:1569)
at org.sonatype.nexus.DefaultNexus.start(DefaultNexus.java:1530)
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.manager.AbstractComponentManager.start(AbstractComponentManager.java:167)
at org.codehaus.plexus.component.builder.XBeanComponentBuilder.startComponentLifecycle(XBeanComponentBuilder.java:255)
at org.codehaus.plexus.component.builder.XBeanComponentBuilder.build(XBeanComponentBuilder.java:129)
at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:181)
at org.codehaus.plexus.component.manager.SingletonComponentManager.getComponent(SingletonComponentManager.java:67)
at org.codehaus.plexus.DefaultComponentRegistry.getComponent(DefaultComponentRegistry.java:327)
at org.codehaus.plexus.DefaultComponentRegistry.lookup(DefaultComponentRegistry.java:163)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:345)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.