Having just done an inspection of the Gradle source, the only mentions
of 'Log4jLoggerFactory' that I found were in the
'log4j-over-slf4j-1.6.1.jar' file, but that has a different package
(org.apache.log4j.Log4jLoggerFactory vs
org.slf4j.impl.Log4jLoggerFactory), which suggests to me that
libraries are being added in from somewhere else. Either that Mac
Ports uninstall wasn't as complete as hoped, or there's black magic
afoot. Being neither a Gradle nor a Mac expert, I can't really give
any further suggestions. But that's what it looks like to me...

- Andrew

On Tue, Apr 5, 2011 at 11:17 PM, John Smart <[email protected]> wrote:
> Yes, Google didn't come up with much except this:
> http://issues.gradle.org/browse/GRADLE-1451
> But this is a fresh install. There was previously an older version installed
> with mac ports, but I uninstalled that, so I don't see how that would
> interfere. It works fine on Ubuntu, but does this on both my Mac OS X
> machines.
>
> On 5 April 2011 23:14, szczepiq <[email protected]> wrote:
>>
>> Hmmm, I cannot reproduce it on my mac. Did you query google for this
>> exception? It seems that it occurs in various other configurations/tools.
>> Hope that helps,
>> Szczepan
>> On Tue, Apr 5, 2011 at 11:09 AM, John Smart <[email protected]>
>> wrote:
>>>
>>> Hi,
>>> I've installed Gradle in the recommended way, but am getting an exception
>>> whenever I run Gradle:
>>> $ echo $GRADLE_HOME
>>> /Library/Gradle/current
>>> $ which gradle
>>> /Library/Gradle/current/bin/gradle
>>> $ gradle -v --debug
>>> FAILURE: Build aborted because of an internal error.
>>> * What went wrong:
>>> Build aborted because of an unexpected internal error. Please file an
>>> issue at: http://www.gradle.org.
>>> * Try:
>>> Run with --debug option to get additional debug info.
>>> * Exception is:
>>> java.lang.ClassCastException: org.slf4j.impl.Log4jLoggerFactory cannot be
>>> cast to ch.qos.logback.classic.LoggerContext
>>>         at
>>> org.gradle.logging.internal.Slf4jLoggingConfigurer.doFailsafeConfiguration(Slf4jLoggingConfigurer.java:67)
>>>         at
>>> org.gradle.logging.internal.Slf4jLoggingConfigurer.configure(Slf4jLoggingConfigurer.java:60)
>>>         at
>>> org.gradle.logging.internal.DefaultLoggingConfigurer.configure(DefaultLoggingConfigurer.java:34)
>>>         at
>>> org.gradle.logging.internal.LoggingSystemAdapter.setLevel(LoggingSystemAdapter.java:55)
>>>         at
>>> org.gradle.logging.internal.LoggingSystemAdapter.on(LoggingSystemAdapter.java:42)
>>>         at
>>> org.gradle.logging.internal.DefaultLoggingManager$StartableLoggingSystem.start(DefaultLoggingManager.java:166)
>>>         at
>>> org.gradle.logging.internal.DefaultLoggingManager.start(DefaultLoggingManager.java:56)
>>>         at
>>> org.gradle.logging.internal.DefaultLoggingManager.start(DefaultLoggingManager.java:31)
>>>         at
>>> org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:208)
>>>         at
>>> org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:193)
>>>         at org.gradle.launcher.Main.execute(Main.java:55)
>>>         at org.gradle.launcher.Main.main(Main.java:40)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>         at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>         at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>>         at
>>> org.gradle.launcher.ProcessBootstrap.runNoExit(ProcessBootstrap.java:46)
>>>         at
>>> org.gradle.launcher.ProcessBootstrap.run(ProcessBootstrap.java:28)
>>>         at org.gradle.launcher.GradleMain.main(GradleMain.java:24)
>>> Any ideas?
>>> --
>>> ___________________________________________________
>>> John Smart | Wakaleo Consulting  |  +64 21 032 2797
>>> Optimizing your software development process
>>> http://www.wakaleo.com [email protected]
>>
>> H
>
>
> --
> ___________________________________________________
> John Smart | Wakaleo Consulting  |  +64 21 032 2797
> Optimizing your software development process
> http://www.wakaleo.com [email protected]
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to