forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@upaya.co.uk>
Subject Re: Cocoon Ant Task
Date Sat, 18 Oct 2003 16:17:22 GMT
David Crossley wrote:

>Upayavira wrote:
>  
>
>>David Crossley wrote:
>>
>>    
>>
>>>Upayavira wrote:
>>>
>>>      
>>>
>>>>I've just committed a Cocoon Ant task to Cocoon CVS, and would welcome 
>>>>feedback on it.   
>>>>        
>>>>
>>>Sorry that it has taken so long for anyone to respond. Perhaps this
>>>should also be raised on cocoon-dev.
>>>
>>>I took the build file that you provided, added my path-to-webapp etc.
>>>but get this with today's cocoon-2.1 cvs ...
>>>------
>>>cocoon:
>>>  [cocoon] java.lang.NoSuchMethodException:
>>>org.apache.cocoon.bean.helpers.AntDelegate.process(org.w3c.dom.Document,
>>>java.lang.String)
>>>
>>>BUILD SUCCESSFUL
>>>Total time: 2 seconds
>>>------
>>>
>>>Ant version: jakarta-ant-1.5
>>>      
>>>
>>I've tested it on 1.5.3 and 1.6. You've got your WEB-INF/lib files in 
>>your classpath? The AntDelegate class is a Cocoon class for providing a 
>>single class, single method entry point into the bean. It should be 
>>found if you've got your classpath set up right.
>>    
>>
>
>I have the following in the top of the example build.xml
>that you sent ...
>
>    <property name="cocoon.context"
>      value="/usr/local/cvs/cocoon-2.1/build/webapp"/>
>    <path id="cp">
>      <fileset dir="${cocoon.context}/WEB-INF/lib" includes="*.jar"/>
>    </path>
>    <taskdef name="cocoon" classname="org.apache.cocoon.CocoonTask"
>      classpathref="cp"/>
>  
>
And does your cocoon task have classpathref="cp" in it?

Regards, Upayavira



Mime
View raw message