Question:

What JDK are you building with? I suspect 1.4.X and if so this means that nlog4j was not compiled with backwards compatibility with 1.4. If so then we're in a world of hurt since we'll have to contact Ceki (slf4j maintainer), upgrade to the next release and re-release everything that depended on this jar.

Alex

Gianmaria Clerici wrote:
I removed the entire directory and got it again from SVN.
I also removed everything under .m2/repository.

I still get the same error.
I am attaching the output of the build from scratch.

But it's the same error as before:


[ERROR] BUILD FAILURE

[INFO]
------------------------------------------------------------------------

[INFO] Compilation failure

c:\Bridgestream\Apache_Directory\releases\apacheds\1.0-RC3\server-main\s
rc\main\java\org\apache\directory\server\Service.java:[33,-1] cannot
access org.slf4j.Logger

bad class file: C:\Documents and
Settings\gclerici\.m2\repository\org\slf4j\nlog4j\1.2.24\nlog4j-1.2.24.j
ar(org/slf4j/Logger.class)

class file has wrong version 49.0, should be 48.0





[INFO]
------------------------------------------------------------------------

[INFO] Trace

org.apache.maven.BuildFailureException: Compilation failure

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:555)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:475)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle
(DefaultLifecycleExecutor.java:891)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(Defaul
tLifecycleExecutor.java:729)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:505)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
l(DefaultLifecycleExecutor.java:488)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:458)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:306)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:219)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:140)

        at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)

        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)

        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:324)

        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

Caused by: org.apache.maven.plugin.CompilationFailureException:
Compilation failure

        at
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMoj
o.java:505)

        at
org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:111)

        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:412)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:534)

        ... 20 more

[INFO]
------------------------------------------------------------------------

[INFO] Total time: 9 minutes 14 seconds

[INFO] Finished at: Tue May 09 15:03:09 PDT 2006

[INFO] Final Memory: 7M/18M

[INFO]
------------------------------------------------------------------------


-----Original Message-----
From: Alex Karasulu [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 09, 2006 1:00 PM
To: Apache Directory Developers List
Subject: [ApacheDS] Problem with nlog4j (was: Re: [ApacheDS] 1.0-RC3
Released)

Gianmaria,

Gianmaria Clerici wrote:
I just got the code from SVN and I tried to do a build but it fails
with this error.
Works like a champ for me on a new fresh clean build with maven repos blown away.
It download the jar file but then it's complaining that it's not the
correct version.
Hmmm you might have had issues on transfer of the nlog4j jar. Please try again.

Also please try to use a fresh new subject when you start a new thread.

Alex



Reply via email to