File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Nexus will not load

 
Mike London
Ranch Hand
Posts: 1158
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I downloaded the nexus war file (latest version, June 19, 2013) put it into the webapps folder and then tried to start nexus on my local Tomcat 7 installation, using:

http://localhost:8080/nexus-2.5.0-04

Yet, it never connects, the connect wheel just spins and spins.

Looking at the Tomcat log, I see the problem below, but I can't find any information about how to fix it.

This same problem happens on Windows 7 and Mac OS/X (with browsers Firefox and Safari).

Look forward to any suggestions.

Thanks. mike.


13:41:19,653 |-ERROR in ch.qos.logback.core.joran.action.AppenderAction - Could not create an Appender of type [com.yammer.metrics.logback.InstrumentedAppender]. ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type com.yammer.metrics.logback.InstrumentedAppender
at ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type com.yammer.metrics.logback.InstrumentedAppender
at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:74)
at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:49)
at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:35)
at at ch.qos.logback.core.joran.action.AppenderAction.begin(AppenderAction.java:54)
at at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:276)
at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:148)
at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:130)
at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:157)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:143)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:106)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:83)
at at org.sonatype.nexus.log.internal.LogbackLogManager.reconfigure(LogbackLogManager.java:466)
at at org.sonatype.nexus.log.internal.LogbackLogManager.configure(LogbackLogManager.java:317)
at at org.sonatype.nexus.web.LogConfigListener.configureLogManager(LogConfigListener.java:59)
at at org.sonatype.nexus.web.LogConfigListener.contextInitialized(LogConfigListener.java:43)
at at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797)
at at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5291)
at at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
at at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
at at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at at java.util.concurrent.FutureTask.run(Unknown Source)
at at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.yammer.metrics.logback.InstrumentedAppender
at at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
at at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:61)
at ... 29 common frames omitted
13:41:19,653 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@38:85 - ActionException in Action for tag [appender] ch.qos.logback.core.joran.spi.ActionException: ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type com.yammer.metrics.logback.InstrumentedAppender
at ch.qos.logback.core.joran.spi.ActionException: ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type com.yammer.metrics.logback.InstrumentedAppender
at at ch.qos.logback.core.joran.action.AppenderAction.begin(AppenderAction.java:82)
at at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:276)
at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:148)
at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:130)
at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:157)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:143)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:106)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:83)
at at org.sonatype.nexus.log.internal.LogbackLogManager.reconfigure(LogbackLogManager.java:466)
at at org.sonatype.nexus.log.internal.LogbackLogManager.configure(LogbackLogManager.java:317)
at at org.sonatype.nexus.web.LogConfigListener.configureLogManager(LogConfigListener.java:59)
at at org.sonatype.nexus.web.LogConfigListener.contextInitialized(LogConfigListener.java:43)
at at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797)
at at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5291)
at at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
at at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
at at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at at java.util.concurrent.FutureTask.run(Unknown Source)
at at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at at java.lang.Thread.run(Unknown Source)
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm, never tried running Nexus that way. Running it as a separate server with the built in Jetty instance is the way that I've always done it and never had a problem with it:
http://books.sonatype.com/nexus-book/reference/_installing_nexus.html
 
Saif Asif
Ranch Hand
Posts: 440
Eclipse IDE Hibernate Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Mike,
I am running nexus on a separate instance of tomcat and yet I never came across this problem , but then I am using an older version of nexus ( nexus-2.2-01 ) and its working perfectly fine with tomcat7.

Looking at your logs, I see a ClassNotFoundException so there must be something missing in the war itself. Try downloading an older version of nexus ( like 2.3 or 2.4 or even 2.5 ) . I am guessing that there might be some issue with the nightly build , its just a hunch .
 
Mike London
Ranch Hand
Posts: 1158
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Saif Asif wrote:Hello Mike,
I am running nexus on a separate instance of tomcat and yet I never came across this problem , but then I am using an older version of nexus ( nexus-2.2-01 ) and its working perfectly fine with tomcat7.

Looking at your logs, I see a ClassNotFoundException so there must be something missing in the war itself. Try downloading an older version of nexus ( like 2.3 or 2.4 or even 2.5 ) . I am guessing that there might be some issue with the nightly build , its just a hunch .


Thanks for all replies.

The problem was a missing jar file. It seems strange that the war file would not run as is without getting another jar file first. But once I got the separate jar file and put it into the lib directory, nexus does (still slow) finally load in the browser.

Thanks,

- mike
 
Manfred Schürhoff
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Could you share which jar file was missing?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic