jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@pivolis.com>
Subject RE: FW: Problem with org.apache.cactus.integration.ant.CactusTask
Date Sun, 31 Aug 2003 11:32:10 GMT
Hi Jacques,

What's wrong with the way described in
http://jakarta.apache.org/cactus/integration/ant/index.html (bottom of
page)? I have never had any issue with it.

Thanks
-Vincent
 
> -----Original Message-----
> From: jacques [mailto:inspired_orange@yahoo.com]
> Sent: 25 August 2003 08:17
> To: Cactus Users List; veny@p2h.com.sg
> Subject: Re: FW: Problem with
org.apache.cactus.integration.ant.CactusTask
> 
> Hi there
> 
> Try reading http://ant.apache.org/faq.html
> 
> When opening the page, search for 'classloader', and
> read the paragraph. It might point you in a direction,
> or at least give you an understanding of how ant loads
> the classes it finds.
> 
> I had exactly the same prob, but solved it by not
> specifying the tasks in a .tasks file (inside the
> jar). Since it doesn't seem to work for you, try one
> of the 2 options mentioned in the url above.
> 
> Jacques
> 
> --- veny <veny@p2h.com.sg> wrote:
> > Hi,
> >
> > I have tried doing taskdef for each of the class,
> > <taskdef name="..."
> > class=".....>
> > but the problem does not disappear.
> >
> > Veny
> >
> > -----Original Message-----
> > From: jacques [mailto:inspired_orange@yahoo.com]
> > Sent: Sunday, August 24, 2003 5:22 AM
> > To: Cactus Users List
> > Subject: Re: Problem with
> > org.apache.cactus.integration.ant.CactusTask
> >
> >
> > Hi there
> >
> > I had a similar problem (custom tasks could not be
> > found) and suspect it has something to do with the
> > classloading in ant.
> >
> > I solved it by defining the tasks in the
> > cactus.tasks
> > (in the cactus-ant.jar, I presume) as seperate
> > taskdefs in the build.xml, ie. instead of having...
> > <taskdef resource="cactus.tasks">
> >    <classpath>
> >      <pathelement....
> >
> > use <taskdef name="..." class=".....>
> >
> > for each task defined in cactus.tasks. It looks like
> > an ant problem, not a cactus problem.
> >
> > Ciao
> > Jacques
> >
> >
> >
> > --- qqasim@csd.abdn.ac.uk wrote:
> > > Hi, I am having some problems with cactus. I am
> > > using jakarta-cactus-13-1.5-
> > > beta1 version
> > >
> > > All I want to do is to use cactifywar to create my
> > > test war and test it using
> > > my browser. In order to do so, I created a taskdef
> > > in my build file:
> > >
> > > <taskdef resource="cactus.tasks">
> > >   <classpath>
> > >     <pathelement
> > >
> >
> location="${basedir}/bookstore-lib/cactus-1.5-beta1.jar"/>
> > >     <pathelement
> > >
> >
> location="${basedir}/bookstore-lib/cactus-ant-1.5-beta1.jar"/>
> > >     <pathelement
> > >
> >
> location="${basedir}/bookstore-lib/commons-httpclient-
> > > 1.5.3.jar"/>
> > >     <pathelement
> > >
> >
> location="${basedir}/bookstore-lib/commons-logging-1.0.3.jar"/>
> > >     <pathelement
> > >
> >
> location="${basedir}/bookstore-lib/aspectjrt-1.0.6.jar"/>
> > >   </classpath>
> > > </taskdef>
> > >
> > > But my build fails with the following error
> > message:
> > >
> > >  " class
> > > org.apache.cactus.integration.ant.CactusTask
> > cannot
> > > be found "
> > >
> > > Previously, I had problems with eclipse plugin. I
> > > used to get errors: "class
> > > org.apache.cactus.integration.ant.CactifyWarTask
> > > cannot be
> > > found "
> > >
> > > Since both of these errors are regarding
> > '...ant.',
> > > it makes me think there may
> > > be something wrong with my cactus dist file. When
> > I
> > > downloaded cactus, I did
> > > not verify it. I also do not include
> > > cactus.properties file in my classpath. As
> > > I understand cactus.properties is mostly used with
> > > RunServerTests task.
> > >
> > > Any ideas?
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > cactus-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > > cactus-user-help@jakarta.apache.org
> > >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > The New Yahoo! Search - Faster. Easier. Bingo.
> > http://search.yahoo.com
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > cactus-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > cactus-user-help@jakarta.apache.org
> >
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > cactus-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > cactus-user-help@jakarta.apache.org
> >
> 
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo.
> http://search.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org



Mime
View raw message