How can I get Eclipse/Jetty/GWT2.0 to find org/apache/commons/logging/Log

I followed the example at and built the example GWT application, but then I wanted to build something else, and I plan on using Google AppEngine. I started a new GWT2.0 + AppEngine project and followed the same setup of adding the same libararies, copied and modified most of my code from the example project. My code compiles, but now every time I try to debug my app, I get this exception and nothing works. This exception repeats two more times every time I start the service. I thought I might be missing org.apache.commons.logging.Log, but when I ctrl+click to that path, its part of gwt-dev.jar in the GWT SDK. What do I need to do to fix this?

Jan 26, 2010 5:23:13 AM warn WARNING: failed{/,/home/asa/Projects/Java/Groceries/Shopping/war} java.lang.NoClassDefFoundError: org/apache/commons/logging/Log at com.asaayers.server.guice.ServerModule.configureHandlers( at net.customware.gwt.dispatch.server.guice.ActionHandlerModule.configure( at at$RecordingBinder.install( at at$ at at at at at com.asaayers.server.guice.MyGuiceServletConfig.getInjector( at at org.mortbay.jetty.handler.ContextHandler.startContext( at org.mortbay.jetty.servlet.Context.startContext( at org.mortbay.jetty.webapp.WebAppContext.startContext( at org.mortbay.jetty.handler.ContextHandler.doStart( at org.mortbay.jetty.webapp.WebAppContext.doStart( at org.mortbay.component.AbstractLifeCycle.start( at org.mortbay.jetty.handler.HandlerWrapper.doStart( at org.mortbay.component.AbstractLifeCycle.start( at org.mortbay.jetty.handler.HandlerWrapper.doStart( at org.mortbay.jetty.Server.doStart( at org.mortbay.component.AbstractLifeCycle.start( at at at at at at at at Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.Log at$ at Method) at at java.lang.ClassLoader.loadClass( at at java.lang.ClassLoader.loadClass( at java.lang.ClassLoader.loadClassInternal( ... 31 more


It seems that Guice uses commons-logging. The tutorial describes how to put a whole bunch of jars in war/WEB-INF/bin. You'll need to download the zip file from the commons-logging site, open it up and find commons-logging-1.1.1.jar, and put that in war/WEB-INF/lib.

Commons-logging will find that you have log4j in your class path, and automatically use that.

Need Your Help

Custom title with image

android window titlebar

i'm creating custom title for activity by disabling standard one and managing everything myself. I wonder if it's possible to replace/theme standart title to my needs.

Convert from kilometers, (km), to decimal degrees

python distance spatial haversine

Using scipy.KDTree to do some quick nearest neighbour searches. I'm using KDTree.query_ball_point(pnt, r=some_distance) to do the search.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.