views:

113

answers:

0

I'm trying to start JETTY from a shell script (previously we used Maven), and I'm coying over some dependent libraries into the JETTY_HOME/lib directory which appears to be causing Classpath conflicts, I'm trying to sort out where the proper LogFacotry.class exists, here's the exception I'm getting on startup.

2009-08-17 22:00:40.661::WARN:  EXCEPTION 
java.lang.NoSuchMethodException: com.sun.org.apache.commons.logging.LogFactory.setLogImplClassName(java.lang.String)
    at java.lang.Class.getDeclaredMethod(Class.java:1937)
    at org.mortbay.jetty.webapp.WebXmlConfiguration.initServlet(WebXmlConfiguration.java:656)
    at org.mortbay.jetty.webapp.WebXmlConfiguration.initWebXmlElement(WebXmlConfiguration.java:458)
    at org.mortbay.jetty.plus.webapp.AbstractConfiguration.initWebXmlElement(AbstractConfiguration.java:187)
    at org.mortbay.jetty.webapp.WebXmlConfiguration.initialize(WebXmlConfiguration.java:413)
    at org.mortbay.jetty.plus.webapp.AbstractConfiguration.initialize(AbstractConfiguration.java:135)
    at org.mortbay.jetty.webapp.WebXmlConfiguration.configureDefaults(WebXmlConfiguration.java:207)
    at org.mortbay.jetty.plus.webapp.AbstractConfiguration.configureDefaults(AbstractConfiguration.java:92)
    at org.mortbay.jetty.plus.webapp.Configuration.configureDefaults(Configuration.java:142)
    at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1195)
    at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:548)
    at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:348)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:151)
    at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:151)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
    at org.mortbay.jetty.Server.doStart(Server.java:222)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:982)
    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.mortbay.start.Main.invokeMain(Main.java:218)
    at org.mortbay.start.Main.start(Main.java:564)
    at org.mortbay.start.Main.main(Main.java:136)