[Cyberduck-trac] [Cyberduck] #3641: java.lang.ExceptionInInitializerError (org.apache.commons.logging.LogConfigurationException: No suitable Log constructor)

Cyberduck trac at trac.cyberduck.ch
Fri Aug 28 09:32:52 CEST 2009


#3641: java.lang.ExceptionInInitializerError
(org.apache.commons.logging.LogConfigurationException: No suitable Log
constructor)
--------------------+-------------------------------------------------------
 Reporter:  samj    |       Owner:  dkocher
     Type:  defect  |      Status:  new    
 Priority:  normal  |   Milestone:         
Component:  core    |     Version:  3.2.1  
 Severity:  major   |    Keywords:         
--------------------+-------------------------------------------------------

Comment(by samj):

 Thanks for the prompt response. I tried unsetting CLASSPATH but to no
 avail:

 $ unset CLASSPATH
 nephologist:MacOS samj$ ./Cyberduck
 Exception in thread "Background" java.lang.ExceptionInInitializerError
         at
 com.mosso.client.cloudfiles.FilesClient.<init>(FilesClient.java:103)
         at
 com.mosso.client.cloudfiles.FilesClient.<init>(FilesClient.java:167)
         at ch.cyberduck.core.cf.CFSession.connect(CFSession.java:91)
         at ch.cyberduck.core.Session.check(Session.java:93)
         at ch.cyberduck.core.Session.mount(Session.java:225)
         at ch.cyberduck.core.Session.mount(Session.java:208)
         at
 ch.cyberduck.ui.cocoa.CDBrowserController$34$1.run(CDBrowserController.java:3744)
         at
 ch.cyberduck.ui.cocoa.CDWindowController$1.run(CDWindowController.java:77)
 Caused by: org.apache.commons.logging.LogConfigurationException:
 org.apache.commons.logging.LogConfigurationException: No suitable Log
 constructor [Ljava.lang.Class;@d7bd04 for
 org.apache.commons.logging.impl.Log4JLogger (Caused by
 java.lang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by
 org.apache.commons.logging.LogConfigurationException: No suitable Log
 constructor [Ljava.lang.Class;@d7bd04 for
 org.apache.commons.logging.impl.Log4JLogger (Caused by
 java.lang.NoClassDefFoundError: org/apache/log4j/Category))
         at
 org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
         at
 org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
         at
 org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
         at
 org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
         at
 org.apache.commons.httpclient.HttpClient.<clinit>(HttpClient.java:66)
         ... 8 more
 Caused by: org.apache.commons.logging.LogConfigurationException: No
 suitable Log constructor [Ljava.lang.Class;@d7bd04 for
 org.apache.commons.logging.impl.Log4JLogger (Caused by
 java.lang.NoClassDefFoundError: org/apache/log4j/Category)
         at
 org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:413)
         at
 org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
         ... 12 more
 Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
         at java.lang.Class.getConstructor0(Class.java:2671)
         at java.lang.Class.getConstructor(Class.java:1629)
         at
 org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:410)
         ... 13 more

 I've also tried to find commons-logging.jar but to no avail:

 $ locate commons-logging.jar
 /Applications/Adobe Flash CS4/Common/Configuration/ActionScript 3.0
 /commons-logging.jar
 /Applications/Protege_4.0_beta/configuration/org.eclipse.osgi/bundles/3/1/.cp/lib
 /commons-logging.jar
 /Applications/eclipse/plugins/com.amazonaws.eclipse.datatools.enablement.simpledb.driver_1.0.0.v200907221402/lib
 /commons-logging-1.0.4/commons-logging.jar
 /Applications/eclipse/plugins/com.amazonaws.eclipse.ec2_1.0.0.v200907221402/lib
 /commons-logging-1.0.4/commons-logging.jar
 /Applications/eclipse/plugins/org.apache.ant_1.7.1.v20090120-1145/lib/ant-
 commons-logging.jar
 /Applications/oxygen/tools/ant/lib/ant-commons-logging.jar
 /Library/Application Support/Adobe/Adobe Version Cue
 CS4/Server/plugins/org.apache.commons_4.0.0/lib/commons-logging.jar
 /Library/Application Support/Adobe/Adobe Version Cue
 CS4/Server/vcsync_client/lib/commons-logging.jar
 $ ls -la /System/Library/Java/Extensions/
 total 37632
 drwxr-xr-x  21 root  wheel      714 Jun 19 02:20 .
 drwxr-xr-x   5 root  wheel      170 Sep 20  2008 ..
 -rw-r--r--   1 root  wheel     6283 May  6 19:18 AppleScriptEngine.jar
 -rw-r--r--   1 root  wheel   127216 May 31  2008 CoreAudio.jar
 -rw-r--r--   1 root  wheel    12835 May 25 23:16 MRJToolkit.jar
 -rw-r--r--   1 root  wheel   935180 May 28 03:40 QTJava.zip
 -rw-r--r--   1 root  wheel    17045 Oct  1  2008 dns_sd.jar
 -rw-r--r--   1 root  wheel  1245588 May 31  2008 j3daudio.jar
 -rw-r--r--   1 root  wheel  1340102 May 31  2008 j3dcore.jar
 -rw-r--r--   1 root  wheel   789164 May 31  2008 j3dutils.jar
 -rw-r--r--   1 root  wheel   328952 May 31  2008 jai_codec.jar
 -rw-r--r--   1 root  wheel  1893836 May 31  2008 jai_core.jar
 -rwxr-xr-x   1 root  wheel   175152 May  6 19:18
 libAppleScriptEngine.jnilib
 -rwxr-xr-x   1 root  wheel   409568 May 31  2008 libJ3D.jnilib
 -rwxr-xr-x   1 root  wheel   724880 May 31  2008 libJ3DAudio.jnilib
 -rwxr-xr-x   1 root  wheel    54768 May 31  2008 libJ3DUtils.jnilib
 -rwxr-xr-x   1 root  wheel   948016 May 28 03:44 libQTJNative.jnilib
 -rwxr-xr-x   1 root  wheel   146144 Apr 14 06:27 libShark.jnilib
 -rwxr-xr-x   1 root  wheel  9875120 May 31  2008 libmlib_jai.jnilib
 -rw-r--r--   1 root  wheel    41239 May 31  2008 mlibwrapper_jai.jar
 -rw-r--r--   1 root  wheel   153874 May 31  2008 vecmath.jar
 $ ls -la ~/Library/Java/Extensions/
 total 0
 drwxr-xr-x  2 samj  staff   68 Apr 10 12:00 .
 drwxr-xr-x  3 samj  staff  102 Apr 10 12:00 ..

 Would this not imply that I *don't* have a commons-logging.jar? I'm no
 Java guru but it says: NoClassDefFoundError.

-- 
Ticket URL: <http://trac.cyberduck.ch/ticket/3641#comment:2>
Cyberduck <http://cyberduck.ch>
FTP, SFTP, WebDAV, Cloud Files and Amazon S3 Browser for Mac OS X.


More information about the Cyberduck-trac mailing list