[MacPorts] #13869: jakarta-log4j causes commons-logging to fail

MacPorts trac at macosforge.org
Mon Jan 7 18:21:58 PST 2008


#13869: jakarta-log4j causes commons-logging to fail
--------------------------------------+-------------------------------------
 Reporter:  seth_macports at araxia.net  |       Owner:  macports-tickets at lists.macosforge.org
     Type:  defect                    |      Status:  new                                  
 Priority:  Normal                    |   Milestone:  Port Bugs                            
Component:  ports                     |     Version:  1.6.0                                
 Keywords:                            |  
--------------------------------------+-------------------------------------
 The presence of the "/opt/local/share/java/jakarta-log4j.jar" jar
 installed by the jakarta-log4j port (which is a dependency for other
 packages) causes the build for the commons-logging port to fail. It
 appears that the classloader(s?) in the JVM in which the tests run pick up
 the log4j implementation of the Logging class prior to the
 java.util.logging implementation, e.g.

 junit.framework.TestListener: addFailure(testPristineLog, Log class
 expected:<...ommons.logging.impl.[Jdk14]Logger> but
 was:<...ommons.logging.impl.[Log4J]Logger>)

 WORKAROUND: Moving the jakarta-log4j.jar out of the /opt/local/share/java/
 directory prior to installation of the commons-logging port results in a
 successful installation.

-- 
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13869>
MacPorts </projects/macports>
Ports system for Mac OS


More information about the macports-tickets mailing list