# ant-user mailing list archives

##### Site index · List index
Message view
Top
From "michael ramati" <rama...@bgumail.bgu.ac.il>
Subject taskdef class cannot be found
Date Tue, 11 Nov 2003 15:06:38 GMT
```jan/antoine/anybody,

using jwsdp-1.3's ant release resulted with misinterpreting
spaces (' ') and dots ('.') inside path environmental variable:

Files\j2sdk_nb\j2sdk1/4/2\lib\tools/jar;C:\jwsdp-1/3\apache-ant\//\server\li
b\catalina-ant/jar;C:\jwsdp-1/3\apache-ant\//\jaxp\lib\jaxp-api/jar;C:\jwsdp
-1/3\apache-ant\//\jaxp\lib\endorsed\xsltc/jar;C:\jwsdp-1/3\apache-ant\//\ja
xp\lib\endorsed\xercesImpl/ja
r;C:\jwsdp-1/3\apache-ant\//\jaxp\lib\endorsed\xalan/jar;C:\jwsdp-1/3\apache
-ant
\//\jaxp\lib\endorsed\sax/jar;C:\jwsdp-1/3\apache-ant\//\jaxp\lib\endorsed\d
om/j
ar;C:\jwsdp-1/3\apache-ant\lib\optional/jar;C:\jwsdp-1/3\apache-ant\lib\ant/
jar;

that is why i have replaced it (c:/jwsdp-1.3/apache-ant)
with the current release (1.54) of which from ant.apache.org.
using this version, of course, the environmental variables
(java_home, ant_home) are not set by scripts (i do it myselft),
and messages like the following appear -

BUILD FAILED

any ideas?!

> ----- Original Message -----
> From: <Jan.Materne@rzf.fin-nrw.de>
> To: <user@ant.apache.org>
> Sent: Monday, November 10, 2003 15:18
> Subject: RE: SOS
>
>
> After unzipping the tutorial I installed the JWSDP. Then I updated the
path
> variable with
>     set path=<jwsdp.home>\apache-ant\bin;<jwsdp.home>\jwsdp-shared\bin
>
> The JWSDP uses a modified ant start script: is sets JAVA_HOME, JSWDP_HOME
> and ANT_HOME via another script
> file. That script file is created during installation of the development
> pack.
>
>
> Have you installed the JWSDP?
>
>
> Jan
>
>
> > -----Original Message-----
> > From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
> > Sent: Monday, November 10, 2003 12:09 PM
> > To: user@ant.apache.org
> > Subject: RE: SOS
> >
> >
> > I don´t know that Tutorial. But I try to help...
> >
> > After reading the "Prerequisites for the Examples" it´s
> > important to do
> > the last step: "Set the following properties in the file
> > <INSTALL>/jwstutorial13/examples/common/build.properties"
> > Especially the
> > first
> > point: "Set tutorial.home to the location of your Java Web
> > Services Tutorial
> >
> > installation".
> >
> > cannot be
> > found"
> > refers to package "catalina" which is a part of Tomcat
> > webserver. And I
> > think
> > setting the tutorial.home property would let Ant include the
> > right Tomcat
> > JAR-file.
> >
> > Without any classpath information. So Ant´s cp is used.
> >
> >
> >
> > But the common/target.xml is included by a number of buildfiles. Which
> > example
> > are you trying?
> >
> >
> >
> > I try for myself to run one example. So I download the JWSDP
> > from [3]. More
> > infos in a few minutes ...
> >
> >
> > Jan
> >
> >
> > [1]
> > ml#wp63742
> >
> >
> >
> > > -----Original Message-----
> > > From: michael ramati [mailto:ramatim@bgumail.bgu.ac.il]
> > > Sent: Monday, November 10, 2003 11:32 AM
> > > To: Ant Users List
> > > Subject: SOS
> > >
> > >
> > > can somebody please instruct me on the matter below?
> > > the problem is i do not know of any exernal jars that
> > > should probably be referenced from a taskdef element
> > > in a targets.xml file. i am just trying to compile simple
> > > examples from http://java.sun.com/webservices/tutorial.html,
> > > and after typing 'ant' i get messages like the following:
> > >     BUILD FAILED
> > >
> > > class
> > >     org.apache.catalina.ant.DeployTask cannot be found
> > > thanks.
> > >
> > > ----- Original Message -----
> > > From: "michael ramati" <ramatim@bgumail.bgu.ac.il>
> > > To: "Ant Users List" <user@ant.apache.org>
> > > Sent: Sunday, November 09, 2003 17:47
> > > Subject: Re: taskdef class cannot be found
> > >
> > >
> > > > hi there,
> > > > thank you antoine for detailed and patient answer.
> > > > indeed, i was aware to the classpath issue, but i
> > > > knew nothing about any external jars that i use,
> > > > except those that are already in \$ant_home/lib.
> > > > again, i work according to the instructions in
> > > > The Java Web Services Tutorial.
> > > > appreciate your kind help.
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Antoine L?vy-Lambert" <antoine@antbuild.com>
> > > > To: "Ant Users List" <user@ant.apache.org>
> > > > Sent: Saturday, November 08, 2003 19:11
> > > > Subject: AW: taskdef class cannot be found
> > > >
> > > >
> > > > > Hi Michael,
> > > > >
> > > > > this sounds like a classpath issue.
> > > > >
> > > > > Have a look at the definition of the taskdef task in the
> > > ant manual (
> > > > >
> > > > > You will see that the taskdef task can have a nested element
> > > <classpath/>
> > > > .
> > > > > this one should contain the path(s) to the jar(s) containing for
> > > instance
> > > > in
> > > > > this case org.apache.catalina.ant.DeployTask
> > > > >
> > > > > Alternatively, you can set your CLASSPATH environment
> > variable to
> > > include
> > > > > all the jars which you are going to use and which are not
> > > part of the
> > > ant
> > > > > distribution.
> > > > >
> > > > > You can also copy to \$ANT_HOME/lib these external jars,
> > > but then you
> > > will
> > > > > soon have a jar supermarket in this directory.
> > > > >
> > > > > Cheers,
> > > > >
> > > > > Antoine
> > > > >
> > > > > -----Urspr?ngliche Nachricht-----
> > > > > Von: michael ramati [mailto:ramatim@bgumail.bgu.ac.il]
> > > > > Gesendet: Freitag, 7. November 2003 22:08
> > > > > An: user@ant.apache.org
> > > > > Betreff: taskdef class cannot be found
> > > > >
> > > > >
> > > > > hi,
> > > > > i get the following message after typing 'ant':
> > > > >
> > > > > BUILD FAILED
> > > > >
> > class
> > > > org.apache.catalina.ant.DeployTask cannot be found
> > > >
> > > > i get similar messages for different projects in The Java
> > Web Services
> > > > Tutorial.
> > > > thanks in advance.
> > > >
> > > >
> > > >
> > > >
> > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > > > For additional commands, e-mail: user-help@ant.apache.org
> > > >
> > >
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > > For additional commands, e-mail: user-help@ant.apache.org
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org