You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Andrew Clegg <an...@gmail.com> on 2008/06/30 15:50:18 UTC

Providing classes required by contributed tasks (help!)

I've been trying to get the antcallback contributed task working but
there seems to be a missing dependency:

java.lang.NoClassDefFoundError:
org/apache/commons/httpclient/params/HttpMethodParams

I'm not sure why antcallback would depend on httpclient, but I know
this task is the culprit because if I change it to antcall I don't
have a problem. Also net.sf.antcontrib.logic.AntCallBack.execute is in
the stacktrace with -verbose switched on.

Anyhow... I tried to fix it by copying commons-httpclient-3.0.1.jar to
~/.ant/lib -- same error.

I also tried to provide ant with an explicit library path to a folder
containing httpclient:

ant -lib axis2-1.3/lib/ write.server.stubs

Same error again.

Can anyone shed any light on this? Is some extra magic required to let
Ant know where to look for this class?

Many thanks!

Andrew.

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


Re: Providing classes required by contributed tasks (help!)

Posted by Andrew Clegg <an...@gmail.com>.
PS... There is nothing in my CLASSPATH, and I checked inside my
commons-httpclient-3.0.1.jar --
/org/apache/commons/httpclient/params/HttpMethodParams.class is indeed
there.

2008/6/30 Andrew Clegg <an...@gmail.com>:
> I've been trying to get the antcallback contributed task working but
> there seems to be a missing dependency:
>
> java.lang.NoClassDefFoundError:
> org/apache/commons/httpclient/params/HttpMethodParams
>
> I'm not sure why antcallback would depend on httpclient, but I know
> this task is the culprit because if I change it to antcall I don't
> have a problem. Also net.sf.antcontrib.logic.AntCallBack.execute is in
> the stacktrace with -verbose switched on.
>
> Anyhow... I tried to fix it by copying commons-httpclient-3.0.1.jar to
> ~/.ant/lib -- same error.
>
> I also tried to provide ant with an explicit library path to a folder
> containing httpclient:
>
> ant -lib axis2-1.3/lib/ write.server.stubs
>
> Same error again.
>
> Can anyone shed any light on this? Is some extra magic required to let
> Ant know where to look for this class?
>
> Many thanks!
>
> Andrew.
>

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