Apache

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • CactifyWarTask cannot be found

    2 answers - 1339 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hi,
    I'm really confused with a problem with the cactifization ant task.
    I've followed with previous related subjects here, but none of them
    had my answer.
    I'm using Cactus 1.7.2. there is a servlet sample inside the binary
    dist. when I try to run the ant task, it gives me:
    taskdef A class needed by class
    cannot be found:
    I'm sure that cargo.jar is in the class path since there is a path
    defined in the build.xml:
    <path id="cactus.classpath">
    <path refid="project.classpath"/>
    <pathelement location="${aspectjrt.jar}"/>
    <pathelement location="${cactus.jar}"/>
    <pathelement location="${cactus.ant.jar}"/>
    <pathelement location="${cargo.jar}"/>
    <pathelement location="${commons.httpclient.jar}"/>
    <pathelement location="${commons.logging.jar}"/>
    <pathelement location="${junit.jar}"/>
    </path>
    also ${carg.jar} points to a correct location.
    here is the line which gives me error:
    <taskdef resource="cactus.tasks" classpathref="cactus.classpath"/>
    What is the problem?
    To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org
  • No.1 | | 2556 bytes | |

    Thank you Kenny,
    The problem is now fixed. It was because I mistakenly copied
    cactus.jar into ant's lib directory, which prevented the other
    cactus.jar to be considered by ant.
    I think this should not be happend since I already provided other
    related jars. The only think I can say, is that error was related to
    the order of jar files, set into classpath.

    Thanks.

    7/7/06, Kenney Westerhof <forge (AT) neonics (DOT) comwrote:
    Fri, 7 Jul 2006, Mohsen Saboorian wrote:

    Hi,

    I've just downloaded the 1.7.2 releases for both J2EE version 1.2 and 1.3,
    and went into samples/servlet and ran 'ant'.

    It worked fine.

    My ant version is Apache Ant version 1.6.2 compiled on July 16 2004
    --
    Can you add the following to line 152 of the build.xml (for the 1.2
    version) - just before the <taskdef>?

    <property name="debug.cactus.classpath" refid="cactus.classpath"/>

    <echo>Cactus Classpath: ${debug.cactus.classpath}</echo>

    The output I get is:

    [echo] Cactus Classpath:
    /

    /

    Maybe you see some discrepancies here

    -- Kenney
    >
    >
    >

    Hi,
    I'm really confused with a problem with the cactifization ant task.
    I've followed with previous related subjects here, but none of them
    had my answer.

    I'm using Cactus 1.7.2. there is a servlet sample inside the binary
    dist. when I try to run the ant task, it gives me:

    taskdef A class needed by class
    cannot be found:

    I'm sure that cargo.jar is in the class path since there is a path
    defined in the build.xml:

    <path id="cactus.classpath">
    <path refid="project.classpath"/>
    <pathelement location="${aspectjrt.jar}"/>
    <pathelement location="${cactus.jar}"/>
    <pathelement location="${cactus.ant.jar}"/>
    <pathelement location="${cargo.jar}"/>
    <pathelement location="${commons.httpclient.jar}"/>
    <pathelement location="${commons.logging.jar}"/>
    <pathelement location="${junit.jar}"/>
    </path>

    also ${carg.jar} points to a correct location.

    here is the line which gives me error:
    <taskdef resource="cactus.tasks" classpathref="cactus.classpath"/>

    What is the problem?

    To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org
    --
  • No.2 | | 2033 bytes | |

    Fri, 7 Jul 2006, Mohsen Saboorian wrote:

    Hi,

    I've just downloaded the 1.7.2 releases for both J2EE version 1.2 and 1.3,
    and went into samples/servlet and ran 'ant'.

    It worked fine.

    My ant version is Apache Ant version 1.6.2 compiled on July 16 2004

    Can you add the following to line 152 of the build.xml (for the 1.2
    version) - just before the <taskdef>?

    <property name="debug.cactus.classpath" refid="cactus.classpath"/>

    <echo>Cactus Classpath: ${debug.cactus.classpath}</echo>

    The output I get is:

    [echo] Cactus Classpath:
    /

    /

    Maybe you see some discrepancies here
    -- Kenney

    Hi,
    I'm really confused with a problem with the cactifization ant task.
    I've followed with previous related subjects here, but none of them
    had my answer.

    I'm using Cactus 1.7.2. there is a servlet sample inside the binary
    dist. when I try to run the ant task, it gives me:

    taskdef A class needed by class
    cannot be found:

    I'm sure that cargo.jar is in the class path since there is a path
    defined in the build.xml:

    <path id="cactus.classpath">
    <path refid="project.classpath"/>
    <pathelement location="${aspectjrt.jar}"/>
    <pathelement location="${cactus.jar}"/>
    <pathelement location="${cactus.ant.jar}"/>
    <pathelement location="${cargo.jar}"/>
    <pathelement location="${commons.httpclient.jar}"/>
    <pathelement location="${commons.logging.jar}"/>
    <pathelement location="${junit.jar}"/>
    </path>

    also ${carg.jar} points to a correct location.

    here is the line which gives me error:
    <taskdef resource="cactus.tasks" classpathref="cactus.classpath"/>

    What is the problem?

    To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org

Re: CactifyWarTask cannot be found


max 4000 letters.
Your nickname that display:
In order to stop the spam: 6 + 5 =
QUESTION ON "Apache"

EMSDN.COM