cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@yahoo.com>
Subject Re: action broken in latest cvs
Date Mon, 11 Jun 2001 17:23:31 GMT
Donald,

FYI, just did a get from cvs, cleanedup my work directory and was able to run the samples
with no
problems.

Thanks,
dims

PS: cvs checkout -P -r cocoon_20_branch xml-cocoon2 (in directory D:\jakarta)


--- Donald Ball <balld@webslingerZ.com> wrote:
> i get this sitemap compilation error from the latest cvs:
> 
> Line 0, column 0:
>
/usr/local/jakarta-tomcat-4.0-b5/work/localhost/uptgen/org/apache/cocoon/www/sitemap_xmap.java:794:
> Wrong number of arguments in method.
>       map = ((Action) this.actions.select("add-employee")).act (
>                                                                ^
> Line 0, column 0:
>
/usr/local/jakarta-tomcat-4.0-b5/work/localhost/uptgen/org/apache/cocoon/www/sitemap_xmap.java:817:
> Wrong number of arguments in method.
>       map = ((Action) this.actions.select("del-employee")).act (
>                                                                ^
> Line 0, column 0:
>
/usr/local/jakarta-tomcat-4.0-b5/work/localhost/uptgen/org/apache/cocoon/www/sitemap_xmap.java:840:
> Wrong number of arguments in method.
>       map = ((Action) this.actions.select("upd-employee")).act (
> 
> it looks like the method signature for actions has changed but the sitemap
> hasn't been updated to use it. the action class states:
> 
>     Map act(Redirector redirector, SourceResolver resolver, Map
> objectModel, String source, Parameters par)
> 
> while the sitemap calls it:
> 
>         if ((map = <xsl:value-of select="$action-name"/> (environment,
> objectModel, substitute(listOfMaps,<xsl:value-of select="$action-source"/>),
> <xsl:value-of select="$component-param"/>)) != null) {
> 
> the redirector and resolver parameters are missing. i'd add them, but i
> can't find a redirector or a resolver in the sitemap anywhere.
> 
> - donald
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 


=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message