aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Nexus will not load Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Nexus will not load" Watch "Nexus will not load" New topic
Author

Nexus will not load

Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1083
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

Joined: May 14, 2008
Posts: 5845
    
    7

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


JBoss In Action
Saif Asif
Ranch Hand

Joined: Aug 11, 2011
Posts: 440

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 .


Muhammad Saif Asif Mirza
OCJA(5/6) OCJP(6) OCJWCD(6)
Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1083
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

Joined: Apr 24, 2009
Posts: 6
Hi,

Could you share which jar file was missing?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Nexus will not load