ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fabricio Diogenes" <fabriciodioge...@ig.com.br>
Subject Re: Unable to instantiate specified logger class
Date Wed, 09 Mar 2005 20:18:33 GMT
Hi Jan,

Thank you for reply.

My logger class is in a jar file.

I put that jar in classpath and I get:

Unable to instantiate specified logger class br.com.sabius.listener.NbLogger
: java.lang.Exception
java.lang.RuntimeException
        at org.apache.tools.ant.Main.createLogger(Main.java:787)
        at org.apache.tools.ant.Main.addBuildListeners(Main.java:710)
        at org.apache.tools.ant.Main.runBuild(Main.java:598)
        at org.apache.tools.ant.Main.startAnt(Main.java:188)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

What do you think?

Fabricio.

----- Original Message ----- 
From: <Jan.Materne@rzf.fin-nrw.de>
To: <user@ant.apache.org>
Sent: Monday, March 07, 2005 4:03 AM
Subject: AW: Unable to instantiate specified logger class


Is that class in the classpath?
Maybe you should pack that logger in a jar and put that to
${user.home}/.ant/lib
Mmh - starting with -lib should also work. These jars are added very early
to Ant´s classpath.


Jan

> -----Ursprüngliche Nachricht-----
> Von: Fabricio Diogenes [mailto:fabriciodiogenes@ig.com.br]
> Gesendet am: Freitag, 4. März 2005 21:42
> An: user@ant.apache.org
> Betreff: Unable to instantiate specified logger class
> Wichtigkeit: Hoch
>
> Hi all,
>
> I installed Ant 1.6.2 on RedHat ES 3 and when I run my project like:
>
> /usr/apache-ant-1.6.2/bin/ant -f nitebuild.xml  -logger
> br.com.sabius.listener.NbLogger java
>
> I get:
>
> Unable to instantiate specified logger class
> br.com.sabius.listener.NbLogger : java.lang.ClassNotFoundException
> java.lang.RuntimeException
>         at org.apache.tools.ant.Main.createLogger(Main.java:787)
>         at org.apache.tools.ant.Main.addBuildListeners(Main.java:710)
>         at org.apache.tools.ant.Main.runBuild(Main.java:598)
>         at org.apache.tools.ant.Main.startAnt(Main.java:188)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
>
>
> I follow the FAQ and already did:
>
> > unset CLASSPATH
>
> > checked with "ant -version" command
>
> > uninstall the preinstalled version of ant with "rpm -e ant ant-libs"
>
> I have my own JAR files and I tested copy them to
> $ANT_HOME/lib, but nothing work.
>
>
> Please, anybody help me?
>
>
> Fabricio.
>
>
>
>
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message