Menu

#10 unable to instantiate logger class

v1.0_(example)
open
nobody
5
2004-03-17
2004-03-17
Anonymous
No

Using dashboard-1.04 with cruisecontrol built from CVS
on 15/03/2004. Blows up as below when starting a build;

- any help appreciated..

Error:
Unable to instantiate specified logger class
net.sourceforge.dashboard.cruisecontrol.CruiseBuildMana
ger : java.lang.RuntimeException
java.lang.RuntimeException
at org.apache.tools.ant.Main.createLogger
(Main.java:781)
at org.apache.tools.ant.Main.addBuildListeners
(Main.java:704)
at org.apache.tools.ant.Main.runBuild
(Main.java:608)
at org.apache.tools.ant.Main.startAnt
(Main.java:220)
at org.apache.tools.ant.launch.Launcher.run
(Launcher.java:215)
at org.apache.tools.ant.launch.Launcher.main
(Launcher.java:90)

Config:
<dashboard>
<targets>
<target name="cvs-export"
event="STARTED">
<message index="3" name="Exporting
files from CVS">
</target>
<target name="prepare" event="STARTED">
<message index="2" name="Creating
directory structure">
</target>
<target name="clean" event="STARTED">
<message index="1" name="Cleaning
work area">
</target>
</targets>
</dashboard>

Classpath:

CLASSPATH=.:/opt/ant/apache-ant-
1.6.0/lib:/opt/ant/plugin-lib/junit.jar:/opt/ant/plugin-
lib/jsch-20030912.jar:/opt/ant/plugin-
lib/AntelopeTasks_3.0.1.jar:/opt/ant/plugin-
lib/kappalayout.jar:/usr/local/cruisecontrol/main/lib/dashb
oard-server-
1.0.4.jar:/usr/local/cruisecontrol/main/lib/jdom.jar:/usr/lo
cal/cruisecontrol/main/dashboard-
props.xml:/usr/local/cruisecontrol/main/lib/mx4j-
jmx.jar:/usr/local/cruisecontrol/main/lib/mx4j-tools.jar

Discussion

  • dave kendall

    dave kendall - 2004-04-01

    Logged In: YES
    user_id=1011582

    I had the same problem with a pretty much identical setup,
    when I was running the build in an "antscript" from
    cruisecontrol. When I took it out of the antscript and just ran
    ant from cc, it resolved that problem, but I moved up the
    chain to "request 904342, the mismatch popped element"
    issue. Haven't worked around that one yet.

     
  • DAB

    DAB - 2004-04-06

    Logged In: YES
    user_id=1011656

    I'm experiencing the same problem here with a almost identical
    setup. When I try to add
    loggerClassName="net.sourceforge.dashboard.cruisecontrol.Cruise
    BuildManager" to the AntBuild task cruise is complaining.

    BUILD FAILED
    Unable to instantiate listener
    net.sourceforge.dashboard.cruisecontrol.CruiseBuildManager

    Unfortunately the hint from dkendall did not work at all for me.

     
  • J. David Beutel

    J. David Beutel - 2004-05-13

    Logged In: YES
    user_id=484527

    I have the same problem. And, when I usedebug="yes", I can
    see that the root cause is the same as request 910111. (But
    I don't have a solution to that one.)

     
  • J. David Beutel

    J. David Beutel - 2004-05-14

    Logged In: YES
    user_id=484527

    See work-around in 910111.

     
  • Brett Procek

    Brett Procek - 2004-05-14

    Logged In: YES
    user_id=982593

    I can tell right way one problem here, you have the full
    pathname of the dashboard-props file on the system
    classpath. This will not work if you are using 'antscript'. You
    need to put the directory where the props file is on the
    classpath that Ant itself uses. Setting this within the
    CLASSPATH environment variable didl not work with Ant 1.6.1
    on my environment(Linux). What I did was edit the ant script
    itself and added it to LOCALCLASSPATH variable. See the
    comment I posted to 910111.

     
  • Nobody/Anonymous

    Logged In: NO

    Hello,

    I get the following error:

    Unable to instantiate listener
    net.sourceforge.dashboard.cruisecontrol.CruiseBui
    ldManager

    Total time: 0 seconds
    [cc]Nov-12 13:51:40 AntBuilder - Ant logfile
    [E:\cc\main\bin\log.xml] cannot
    be found
    [cc]Nov-12 13:51:40 Project - exception attempting
    build in project hellow
    orld
    net.sourceforge.cruisecontrol.CruiseControlException: ant
    logfile E:\cc\main\bin
    \log.xml does not exist.
    at
    net.sourceforge.cruisecontrol.builders.AntBuilder.getAntLogAsE
    lement(
    AntBuilder.java:356)
    at net.sourceforge.cruisecontrol.builders.AntBuilder.build
    (AntBuilder.ja
    va:180)
    at net.sourceforge.cruisecontrol.Schedule.build
    (Schedule.java:140)
    at net.sourceforge.cruisecontrol.Project.build
    (Project.java:183)
    at net.sourceforge.cruisecontrol.Project.execute
    (Project.java:146)
    at
    net.sourceforge.cruisecontrol.BuildQueue.serviceQueue
    (BuildQueue.java
    :75)
    at net.sourceforge.cruisecontrol.BuildQueue.run
    (BuildQueue.java:91)
    at java.lang.Thread.run(Thread.java:534)

    Could you help?

    Thanks,
    Alex

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.