You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Bret Kumler <bk...@bitfone.com> on 2004/07/06 22:36:16 UTC
Cactus1.6.1 and Ant 1.6.1
I just got Cactus 1.6.1 & Ant 1.6.1
I'm getting the following message.
[taskdef] Could not load definitions from resource cactus.tasks. It could
not be found.
But the cactus task work, how can I get rid of this message?
Thnx
RE: Cactus1.6.1 and Ant 1.6.1
Posted by Bret Kumler <bk...@bitfone.com>.
Oh,
I forgot, I'm importing another build script.
It's causing the message.
I remove the reference and it's fine.
Thanks for the help Vincent.
-----Original Message-----
From: Vincent Massol [mailto:vmassol@pivolis.com]
Sent: Monday, July 12, 2004 9:59 AM
To: 'Cactus Users List'
Subject: RE: Cactus1.6.1 and Ant 1.6.1
> -----Original Message-----
> From: Bret Kumler [mailto:bkumler@bitfone.com]
> Sent: lundi 12 juillet 2004 18:46
> To: 'Cactus Users List'
> Subject: RE: Cactus1.6.1 and Ant 1.6.1
>
> Vincent
>
> -----Original Message-----
> From: Vincent Massol [mailto:vmassol@pivolis.com]
> Sent: Monday, July 12, 2004 9:41 AM
> To: 'Cactus Users List'
> Subject: RE: Cactus1.6.1 and Ant 1.6.1
>
> Hi Brett,
>
> I have checked your log file and I cannot find any problem. Just one
> thing:
> at some point it says "Adding reference: cactus.class.path" and at others
> it
> says "Adding reference: cactus.classpath". Do you really want to have 2
> such
> paths?
>
>
>
> I couldn't find cactus.class.path in my build file.
Have you looked at the log file you sent? It's there. You seem to be
importing some Ant scripts. Maybe it's there?
> I do have cactus.classpath
>
>
>
>
> Could you also check that the cactus.tasks file is present in the
> ${cactus-ant-jar} jar? (I'd expect it to be there but who knows).
>
>
> It's there in the jar file.
>
>
> Could you please also verify that the Cactus Ant jar is *NOT* present in
> the
> System classpath, i.e. that it is not present in the Ant classpath.
>
>
> It's not in the system classpath or in ant/lib
Just to be sure, if you add the following to your build file:
<echo>java.class.path = ${java.class.path}</echo>
Is there any Cactus reference in the printed path?
If not, then I'm stuck and you'll need to debug into the Ant code itself...
;-)
[snip]
-Vincent
---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-user-help@jakarta.apache.org
RE: Cactus1.6.1 and Ant 1.6.1
Posted by Vincent Massol <vm...@pivolis.com>.
> -----Original Message-----
> From: Bret Kumler [mailto:bkumler@bitfone.com]
> Sent: lundi 12 juillet 2004 18:46
> To: 'Cactus Users List'
> Subject: RE: Cactus1.6.1 and Ant 1.6.1
>
> Vincent
>
> -----Original Message-----
> From: Vincent Massol [mailto:vmassol@pivolis.com]
> Sent: Monday, July 12, 2004 9:41 AM
> To: 'Cactus Users List'
> Subject: RE: Cactus1.6.1 and Ant 1.6.1
>
> Hi Brett,
>
> I have checked your log file and I cannot find any problem. Just one
> thing:
> at some point it says "Adding reference: cactus.class.path" and at others
> it
> says "Adding reference: cactus.classpath". Do you really want to have 2
> such
> paths?
>
>
>
> I couldn't find cactus.class.path in my build file.
Have you looked at the log file you sent? It's there. You seem to be
importing some Ant scripts. Maybe it's there?
> I do have cactus.classpath
>
>
>
>
> Could you also check that the cactus.tasks file is present in the
> ${cactus-ant-jar} jar? (I'd expect it to be there but who knows).
>
>
> It's there in the jar file.
>
>
> Could you please also verify that the Cactus Ant jar is *NOT* present in
> the
> System classpath, i.e. that it is not present in the Ant classpath.
>
>
> It's not in the system classpath or in ant/lib
Just to be sure, if you add the following to your build file:
<echo>java.class.path = ${java.class.path}</echo>
Is there any Cactus reference in the printed path?
If not, then I'm stuck and you'll need to debug into the Ant code itself...
;-)
[snip]
-Vincent
RE: Cactus1.6.1 and Ant 1.6.1
Posted by Bret Kumler <bk...@bitfone.com>.
Vincent
-----Original Message-----
From: Vincent Massol [mailto:vmassol@pivolis.com]
Sent: Monday, July 12, 2004 9:41 AM
To: 'Cactus Users List'
Subject: RE: Cactus1.6.1 and Ant 1.6.1
Hi Brett,
I have checked your log file and I cannot find any problem. Just one thing:
at some point it says "Adding reference: cactus.class.path" and at others it
says "Adding reference: cactus.classpath". Do you really want to have 2 such
paths?
I couldn't find cactus.class.path in my build file.
I do have cactus.classpath
Could you also check that the cactus.tasks file is present in the
${cactus-ant-jar} jar? (I'd expect it to be there but who knows).
It's there in the jar file.
Could you please also verify that the Cactus Ant jar is *NOT* present in the
System classpath, i.e. that it is not present in the Ant classpath.
It's not in the system classpath or in ant/lib
Thanks
-Vincent
> -----Original Message-----
> From: Bret Kumler [mailto:bkumler@bitfone.com]
> Sent: lundi 12 juillet 2004 18:34
> To: 'Cactus Users List'
> Subject: RE: Cactus1.6.1 and Ant 1.6.1
>
> Here's my cactus 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>
>
> I ran it with -debug. See log attachment.
>
>
>
>
>
> -----Original Message-----
> From: Vincent Massol [mailto:vmassol@pivolis.com]
> Sent: Monday, July 12, 2004 9:12 AM
> To: 'Cactus Users List'
> Subject: RE: Cactus1.6.1 and Ant 1.6.1
>
>
>
> > -----Original Message-----
> > From: Bret Kumler [mailto:bkumler@bitfone.com]
> > Sent: lundi 12 juillet 2004 17:59
> > To: 'Cactus Users List'
> > Subject: RE: Cactus1.6.1 and Ant 1.6.1
> >
> > Vincent, here ya go.
>
> [snip]
>
> >
> > <taskdef resource="cactus.tasks" classpathref="cactus.classpath"/>
>
> [snip]
>
> Ok. And is cactus.classpath correctly defined as:
>
> <path id="cactus.classpath">
> <pathelement location="${aspectjrt.jar}"/>
> <pathelement location="${cactus.jar}"/>
> <pathelement location="${cactus.ant.jar}"/>
> <pathelement location="${commons.httpclient.jar}"/>
> <pathelement location="${commons.logging.jar}"/>
> <pathelement location="${junit.jar}"/>
> </path>
>
> ?
>
> That would be the reason for the taskdef not being able to download some
> Cactus Ant task.
>
> Could you also run it in debug mode (ant -debug) and show us what it says?
>
> Thanks
> -Vincent
>
> >
> >
> >
> > -----Original Message-----
> > From: Vincent Massol [mailto:vmassol@pivolis.com]
> > Sent: Friday, July 09, 2004 11:42 PM
> > To: 'Cactus Users List'
> > Subject: RE: Cactus1.6.1 and Ant 1.6.1
> >
> > Hi Bret,
> >
> > > -----Original Message-----
> > > From: Bret Kumler [mailto:bkumler@bitfone.com]
> > > Sent: mardi 6 juillet 2004 22:36
> > > To: 'Cactus Users List'
> > > Subject: Cactus1.6.1 and Ant 1.6.1
> > >
> > > I just got Cactus 1.6.1 & Ant 1.6.1
> > >
> > > I'm getting the following message.
> > >
> > > [taskdef] Could not load definitions from resource cactus.tasks. It
> > > could
> > > not be found.
> > >
> > > But the cactus task work, how can I get rid of this message?
> >
> > Strange. I do not have this problem. Could you show us how you use
> > <taskdef>
> > in your build file?
> >
> > Thanks
> > -Vincent
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>
>
> ---------------------------------------------------------------------
> 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
RE: Cactus1.6.1 and Ant 1.6.1
Posted by Vincent Massol <vm...@pivolis.com>.
Hi Brett,
I have checked your log file and I cannot find any problem. Just one thing:
at some point it says "Adding reference: cactus.class.path" and at others it
says "Adding reference: cactus.classpath". Do you really want to have 2 such
paths?
Could you also check that the cactus.tasks file is present in the
${cactus-ant-jar} jar? (I'd expect it to be there but who knows).
Could you please also verify that the Cactus Ant jar is *NOT* present in the
System classpath, i.e. that it is not present in the Ant classpath.
Thanks
-Vincent
> -----Original Message-----
> From: Bret Kumler [mailto:bkumler@bitfone.com]
> Sent: lundi 12 juillet 2004 18:34
> To: 'Cactus Users List'
> Subject: RE: Cactus1.6.1 and Ant 1.6.1
>
> Here's my cactus 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>
>
> I ran it with -debug. See log attachment.
>
>
>
>
>
> -----Original Message-----
> From: Vincent Massol [mailto:vmassol@pivolis.com]
> Sent: Monday, July 12, 2004 9:12 AM
> To: 'Cactus Users List'
> Subject: RE: Cactus1.6.1 and Ant 1.6.1
>
>
>
> > -----Original Message-----
> > From: Bret Kumler [mailto:bkumler@bitfone.com]
> > Sent: lundi 12 juillet 2004 17:59
> > To: 'Cactus Users List'
> > Subject: RE: Cactus1.6.1 and Ant 1.6.1
> >
> > Vincent, here ya go.
>
> [snip]
>
> >
> > <taskdef resource="cactus.tasks" classpathref="cactus.classpath"/>
>
> [snip]
>
> Ok. And is cactus.classpath correctly defined as:
>
> <path id="cactus.classpath">
> <pathelement location="${aspectjrt.jar}"/>
> <pathelement location="${cactus.jar}"/>
> <pathelement location="${cactus.ant.jar}"/>
> <pathelement location="${commons.httpclient.jar}"/>
> <pathelement location="${commons.logging.jar}"/>
> <pathelement location="${junit.jar}"/>
> </path>
>
> ?
>
> That would be the reason for the taskdef not being able to download some
> Cactus Ant task.
>
> Could you also run it in debug mode (ant -debug) and show us what it says?
>
> Thanks
> -Vincent
>
> >
> >
> >
> > -----Original Message-----
> > From: Vincent Massol [mailto:vmassol@pivolis.com]
> > Sent: Friday, July 09, 2004 11:42 PM
> > To: 'Cactus Users List'
> > Subject: RE: Cactus1.6.1 and Ant 1.6.1
> >
> > Hi Bret,
> >
> > > -----Original Message-----
> > > From: Bret Kumler [mailto:bkumler@bitfone.com]
> > > Sent: mardi 6 juillet 2004 22:36
> > > To: 'Cactus Users List'
> > > Subject: Cactus1.6.1 and Ant 1.6.1
> > >
> > > I just got Cactus 1.6.1 & Ant 1.6.1
> > >
> > > I'm getting the following message.
> > >
> > > [taskdef] Could not load definitions from resource cactus.tasks. It
> > > could
> > > not be found.
> > >
> > > But the cactus task work, how can I get rid of this message?
> >
> > Strange. I do not have this problem. Could you show us how you use
> > <taskdef>
> > in your build file?
> >
> > Thanks
> > -Vincent
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
RE: Cactus1.6.1 and Ant 1.6.1
Posted by Bret Kumler <bk...@bitfone.com>.
Here's my cactus 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>
I ran it with -debug. See log attachment.
-----Original Message-----
From: Vincent Massol [mailto:vmassol@pivolis.com]
Sent: Monday, July 12, 2004 9:12 AM
To: 'Cactus Users List'
Subject: RE: Cactus1.6.1 and Ant 1.6.1
> -----Original Message-----
> From: Bret Kumler [mailto:bkumler@bitfone.com]
> Sent: lundi 12 juillet 2004 17:59
> To: 'Cactus Users List'
> Subject: RE: Cactus1.6.1 and Ant 1.6.1
>
> Vincent, here ya go.
[snip]
>
> <taskdef resource="cactus.tasks" classpathref="cactus.classpath"/>
[snip]
Ok. And is cactus.classpath correctly defined as:
<path id="cactus.classpath">
<pathelement location="${aspectjrt.jar}"/>
<pathelement location="${cactus.jar}"/>
<pathelement location="${cactus.ant.jar}"/>
<pathelement location="${commons.httpclient.jar}"/>
<pathelement location="${commons.logging.jar}"/>
<pathelement location="${junit.jar}"/>
</path>
?
That would be the reason for the taskdef not being able to download some
Cactus Ant task.
Could you also run it in debug mode (ant -debug) and show us what it says?
Thanks
-Vincent
>
>
>
> -----Original Message-----
> From: Vincent Massol [mailto:vmassol@pivolis.com]
> Sent: Friday, July 09, 2004 11:42 PM
> To: 'Cactus Users List'
> Subject: RE: Cactus1.6.1 and Ant 1.6.1
>
> Hi Bret,
>
> > -----Original Message-----
> > From: Bret Kumler [mailto:bkumler@bitfone.com]
> > Sent: mardi 6 juillet 2004 22:36
> > To: 'Cactus Users List'
> > Subject: Cactus1.6.1 and Ant 1.6.1
> >
> > I just got Cactus 1.6.1 & Ant 1.6.1
> >
> > I'm getting the following message.
> >
> > [taskdef] Could not load definitions from resource cactus.tasks. It
> > could
> > not be found.
> >
> > But the cactus task work, how can I get rid of this message?
>
> Strange. I do not have this problem. Could you show us how you use
> <taskdef>
> in your build file?
>
> Thanks
> -Vincent
>
>
> ---------------------------------------------------------------------
> 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
---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-user-help@jakarta.apache.org
RE: Cactus1.6.1 and Ant 1.6.1
Posted by Vincent Massol <vm...@pivolis.com>.
> -----Original Message-----
> From: Bret Kumler [mailto:bkumler@bitfone.com]
> Sent: lundi 12 juillet 2004 17:59
> To: 'Cactus Users List'
> Subject: RE: Cactus1.6.1 and Ant 1.6.1
>
> Vincent, here ya go.
[snip]
>
> <taskdef resource="cactus.tasks" classpathref="cactus.classpath"/>
[snip]
Ok. And is cactus.classpath correctly defined as:
<path id="cactus.classpath">
<pathelement location="${aspectjrt.jar}"/>
<pathelement location="${cactus.jar}"/>
<pathelement location="${cactus.ant.jar}"/>
<pathelement location="${commons.httpclient.jar}"/>
<pathelement location="${commons.logging.jar}"/>
<pathelement location="${junit.jar}"/>
</path>
?
That would be the reason for the taskdef not being able to download some
Cactus Ant task.
Could you also run it in debug mode (ant -debug) and show us what it says?
Thanks
-Vincent
>
>
>
> -----Original Message-----
> From: Vincent Massol [mailto:vmassol@pivolis.com]
> Sent: Friday, July 09, 2004 11:42 PM
> To: 'Cactus Users List'
> Subject: RE: Cactus1.6.1 and Ant 1.6.1
>
> Hi Bret,
>
> > -----Original Message-----
> > From: Bret Kumler [mailto:bkumler@bitfone.com]
> > Sent: mardi 6 juillet 2004 22:36
> > To: 'Cactus Users List'
> > Subject: Cactus1.6.1 and Ant 1.6.1
> >
> > I just got Cactus 1.6.1 & Ant 1.6.1
> >
> > I'm getting the following message.
> >
> > [taskdef] Could not load definitions from resource cactus.tasks. It
> > could
> > not be found.
> >
> > But the cactus task work, how can I get rid of this message?
>
> Strange. I do not have this problem. Could you show us how you use
> <taskdef>
> in your build file?
>
> Thanks
> -Vincent
>
>
> ---------------------------------------------------------------------
> 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
RE: Cactus1.6.1 and Ant 1.6.1
Posted by Bret Kumler <bk...@bitfone.com>.
Vincent, here ya go.
<target name="init">
<echo
message="----------------------------------------------"/>
<echo message="Cactus Classpath:
"/>
<echo message="
"/>
<echo message="${echo.cactus.classpath}"/>
<echo
message="----------------------------------------------"/>
<echo message="Project Classpath:
"/>
<echo message="
"/>
<echo message="${echo.project.classpath}"/>
<echo
message="----------------------------------------------"/>
<taskdef resource="cactus.tasks" classpathref="cactus.classpath"/>
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
<pathelement location="${ant.contrib.jar}"/>
</classpath>
</taskdef>
</target>
-----Original Message-----
From: Vincent Massol [mailto:vmassol@pivolis.com]
Sent: Friday, July 09, 2004 11:42 PM
To: 'Cactus Users List'
Subject: RE: Cactus1.6.1 and Ant 1.6.1
Hi Bret,
> -----Original Message-----
> From: Bret Kumler [mailto:bkumler@bitfone.com]
> Sent: mardi 6 juillet 2004 22:36
> To: 'Cactus Users List'
> Subject: Cactus1.6.1 and Ant 1.6.1
>
> I just got Cactus 1.6.1 & Ant 1.6.1
>
> I'm getting the following message.
>
> [taskdef] Could not load definitions from resource cactus.tasks. It
> could
> not be found.
>
> But the cactus task work, how can I get rid of this message?
Strange. I do not have this problem. Could you show us how you use <taskdef>
in your build file?
Thanks
-Vincent
---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-user-help@jakarta.apache.org
RE: Cactus1.6.1 and Ant 1.6.1
Posted by Vincent Massol <vm...@pivolis.com>.
Hi Bret,
> -----Original Message-----
> From: Bret Kumler [mailto:bkumler@bitfone.com]
> Sent: mardi 6 juillet 2004 22:36
> To: 'Cactus Users List'
> Subject: Cactus1.6.1 and Ant 1.6.1
>
> I just got Cactus 1.6.1 & Ant 1.6.1
>
> I'm getting the following message.
>
> [taskdef] Could not load definitions from resource cactus.tasks. It
> could
> not be found.
>
> But the cactus task work, how can I get rid of this message?
Strange. I do not have this problem. Could you show us how you use <taskdef>
in your build file?
Thanks
-Vincent