Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#13869 closed defect (worksforme)

jakarta-log4j causes commons-logging to fail

Reported by: seth_macports@… Owned by: blair (Blair Zajac)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port:

Description

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.

Change History (3)

comment:1 Changed 17 years ago by blair (Blair Zajac)

Owner: changed from macports-tickets@… to blair@…

Taking.

comment:2 Changed 17 years ago by blair (Blair Zajac)

Resolution: worksforme
Status: newclosed

I can't reproduce this with my latest commits, the most important one being in r33902.

comment:3 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.