You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Young Yang <yy...@wysdom.com> on 2003/12/16 00:55:18 UTC

Sample

I am playing with Cactus for the first time, tried to build the samples with ant 1.5.4 and got the following exception:

file:C:/jakarta-cactus-13-1.5/samples/ejb/build.xml:137: taskdef class org.apach
e.cactus.integration.ant.CactifyWarTask cannot be found
        at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:240)

        at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:162)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
        at org.apache.tools.ant.Main.runBuild(Main.java:609)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)
--- Nested Exception ---
java.lang.NoClassDefFoundError: org/apache/commons/logging/Log
        at java.lang.Class.getConstructors0(Native Method)
        at java.lang.Class.getDeclaredConstructors(Class.java:1072)
        at org.apache.tools.ant.AntClassLoader.initializeClass(AntClassLoader.ja
va:479)
        at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:231)

        at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:162)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
        at org.apache.tools.ant.Main.runBuild(Main.java:609)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)  

The init task runs like the following:

init:
[available] Found: C:\jakarta-cactus-13-1.5\lib\j2ee-1.3.jar
Condition true; setting properties.ok to true
Setting project property: properties.ok -> true
Class org.apache.cactus.integration.ant.CactifyWarTask loaded from parent loader

Is there anything wrong in the configuration?

Thanks for help.

Young


Re: Sample

Posted by Virga <vi...@free.fr>.
hi Young,
just put commons-logging library in ant classpath or your classpath, it'll
work.

regards,
Virga