My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1238: App Engine SDK contains crippled commons-logging
140 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  May 2009


Sign in to add a comment
 
Reported by mcaslavsky@gmail.com, Apr 9, 2009
App Engine SDK contains crippled commons-logging-1.1.1.jar which does not
contain or.apache.commons.logging.* classes, but this jar overwrites user
supplied commons-logging-1.1.1.jar from WEB-INF/lib, resulting to
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory.

SDK should either supply valid commons logging jar or choose another name.
Apr 21, 2009
#1 kafka....@gmail.com
Met the same problem.
Uncaught exception from servlet
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
	at org.springframework.web.context.ContextLoader.<clinit>(ContextLoader.java:146)
	at
org.springframework.web.context.ContextLoaderListener.createContextLoader(ContextLoaderListener.java:53)
	at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:44)
	at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530)
...
Apr 21, 2009
#2 ash...@gmail.com
I get the same issue.  I just set maven to use commons-logging 1.1 instead of 1.1.1
works as a workaround.
Apr 21, 2009
#3 mcaslavsky@gmail.com
Solution is simple: put commongs logging into WEB-INF/lib with
different name (commons-logging.jar). 

http://groups.google.com/group/google-appengine-java/browse_thread/thread/d88f23730971bb66/ae82095066350b29#ae82095066350b29
Apr 21, 2009
#4 schwa...@google.com
(No comment was entered for this change.)
Status: Accepted
Labels: b1693560
May 13, 2009
#5 apijason...@gtempaccount.com
(No comment was entered for this change.)
Status: Fixed
Oct 22, 2010
#6 Eugene.S...@gmail.com
There is another one issue related to this:
If you have set
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
in commons-logging.properties, than will you get the following
org.apache.commons.logging.LogConfigurationException: User-specified log class 'org.apache.commons.logging.impl.Log4JLogger' cannot be found or is not useable.

The workaround is just to leave commons-logging.properties empty (Log4J will be used by default, if there is log4j.jar in the classpath).

Sign in to add a comment

Powered by Google Project Hosting