jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lybarger <Mark.Lybar...@CBC-Companies.com>
Subject RE: class not found error
Date Thu, 09 Oct 2003 19:20:08 GMT
make sure the jars exist in the location your classpath points to:
	/home/qauser/faws-integration/third-party/cactus/lib/

you can run ant with the -debug option to see if it drops anything
(specifically the cactus.ant.jar iirc) from the cactus.classpath you create.
it'll show something like:

Adding reference: cactus.classpath -> 
   +Task: taskdef
dropping C:\Release4.1\a.jar from path as it doesn't exist


> -----Original Message-----
> From: Bret Kumler [mailto:bkumler@firstam.com]
> Sent: Thursday, October 09, 2003 3:01 PM
> To: Cactus Users List
> Subject: RE: class not found error
> 
> 
> Here's the contents of my build.xml
> 
> <!-- ###########################
> 		  Cactus Ant classpath
>      	     ###########################
> 	-->
> 	<path id="cactus.classpath">
> 		<pathelement location="${cactus-jar}"/>
> 		<pathelement location="${cactus.ant.jar}"/>
> 		<pathelement location="${servlet-jar}"/>
> 		<pathelement location="${j2ee-jar}"/>
> 		<pathelement location="${aspectjrt-jar}"/>
> 		<pathelement location="${commons-logging-jar}"/>
> 		<pathelement location="${commons-httpclient-jar}"/>
> 		<pathelement location="${junit-jar}"/>
> 		<pathelement location="${httpunit-jar}"/>
> 		<pathelement location="${nekohtml-jar}"/>
> 	</path>
> 
> 
> <taskdef resource="cactus.tasks" classpathref="cactus.classpath"/>
> 
> 
> It works on windoze.
> 
> 
> -----Original Message-----
> From: Mark Lybarger [mailto:Mark.Lybarger@CBC-Companies.com]
> Sent: Thursday, October 09, 2003 10:41 AM
> To: 'Cactus Users List'
> Subject: RE: class not found error
> 
> 
> you've probably already checked this, but this is usually 
> when ant can't
> find the jars that contain the cactus.tasks file.  
> 
> > -----Original Message-----
> > From: Bret Kumler [mailto:bkumler@firstam.com]
> > Sent: Thursday, October 09, 2003 2:33 PM
> > To: Cactus Users List
> > Subject: class not found error
> > 
> > 
> > Ok, the script works on Windoze but not on UNIX, see below.
> > 
> > [qauser@srcbusd01 pm-tests]$ ant init
> > Buildfile: build.xml
> > 
> > init:
> >      [echo] ----------------------------------------------
> >      [echo] Cactus Classpath:
> >      [echo]
> >      [echo]
> > /home/qauser/faws-integration/third-party/cactus/lib/cactus-1.
> > 6dev-20030907.
> > jar:/home/qauser/faws-integration/third-party/cactus/lib/cactu
> > s-ant-1.6dev-2
> > 0030907.jar:/home/qauser/faws-integration/third-party/cactus/l
> > ib/servletapi-
> > 2.3.jar:/home/qauser/faws-integration/third-party/cactus/lib/j
> > 2ee-1-3-1.jar:
> > /home/qauser/faws-integration/third-party/cactus/lib/aspectjrt
> > -1.0.6.jar:/ho
> > me/qauser/faws-integration/third-party/cactus/lib/commons-logg
> > ing-1.0.3.jar:
> > /home/qauser/faws-integration/third-party/cactus/lib/commons-h
> > ttpclient-2.0-
> > rc1.jar:/home/qauser/faws-integration/third-party/cactus/lib/j
> > unit-3.8.1.jar
> > :/home/qauser/faws-integration/third-party/cactus/lib/httpunit
> > -1.5.3.jar:/ho
> > me/qauser/faws-integration/third-party/cactus/lib/nekohtml-0.7.4.jar
> >      [echo] ----------------------------------------------
> > 
> > BUILD FAILED
> > file:/home/qauser/faws-integration/pm-tests/build.xml:125: 
> > taskdef class
> > org.apache.cactus.integration.ant.CactusTask cannot be found
> > 
> > Total time: 1 second
> > 
> > Any ideas?
> > 
> > ---
> > Incoming mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.522 / Virus Database: 320 - Release Date: 9/29/2003
> >  
> > 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.522 / Virus Database: 320 - Release Date: 9/29/2003
>  
> 
> 
> ---------------------------------------------------------------------
> 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
> 
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.522 / Virus Database: 320 - Release Date: 9/29/2003
>  
> 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.522 / Virus Database: 320 - Release Date: 9/29/2003
 


Mime
View raw message