You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Donald Ball <ba...@webslingerZ.com> on 2001/06/11 18:55:13 UTC
action broken in latest cvs
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
Re: action broken in latest cvs
Posted by Berin Loritsch <bl...@apache.org>.
Donald Ball wrote:
>
> On Tue, 12 Jun 2001, giacomo wrote:
>
> > > Repository revision: 1.7
> > > /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl,v
> > > Sticky Tag: 1.7
> > ^^^^^
> >
> > See, you have a stick tag sitting on the sitemap.xsl. Try to do a
> > cvs upd -A sitemap.xsl
>
> huh, i wonder how that happened... what's a sticky tag anyway? man,
> sometimes i hate cvs. thanks for the help.
Sticky tags are basically ways of getting a specific revision every time.
Any time you "cvs upd -r tag" or get a specific version from CVS it is
sticky.
It is convenient when you want to get the cocoon_20 branch all the time...
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: action broken in latest cvs
Posted by giacomo <gi...@apache.org>.
On Tue, 12 Jun 2001, Donald Ball wrote:
> On Tue, 12 Jun 2001, giacomo wrote:
>
> > > Repository revision: 1.7
> > > /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl,v
> > > Sticky Tag: 1.7
> > ^^^^^
> >
> > See, you have a stick tag sitting on the sitemap.xsl. Try to do a
> > cvs upd -A sitemap.xsl
>
> huh, i wonder how that happened... what's a sticky tag anyway? man,
> sometimes i hate cvs. thanks for the help.
It happens when you explicitly checkout by revision, tag, keyword or
date. Here the extract from the cvs manual
Use the -A option to reset any sticky tags, dates,
or -k options. (If you get a working file using
one of the -r, -D, or -k options, cvs remembers the
corresponding tag, date, or kflag and continues
using it on future updates; use the -A option to
make cvs forget these specifications, and retrieve
the ``head'' version of the file).
Giacomo
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: action broken in latest cvs
Posted by Donald Ball <ba...@webslingerZ.com>.
On Tue, 12 Jun 2001, giacomo wrote:
> > Repository revision: 1.7
> > /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl,v
> > Sticky Tag: 1.7
> ^^^^^
>
> See, you have a stick tag sitting on the sitemap.xsl. Try to do a
> cvs upd -A sitemap.xsl
huh, i wonder how that happened... what's a sticky tag anyway? man,
sometimes i hate cvs. thanks for the help.
- donald
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: action broken in latest cvs
Posted by giacomo <gi...@apache.org>.
On Mon, 11 Jun 2001, Donald Ball wrote:
> On Mon, 11 Jun 2001, Davanum Srinivas wrote:
>
> > FYI, just did a get from cvs, cleanedup my work directory and was able
> > to run the samples with no problems.
>
> i'm checking out the HEAD branch - 2.1. i just checked it again and it
> does not work. hmm. okay, i checked out a clean anonyous copy of the
> repository on another computer. the sitemap stylesheet files differ!
>
> [root@chngw xml-cocoon2]# ls -l sitemap.xsl
> -rw-r--r-- 1 root root 68724 Jun 11 14:51 sitemap.xsl
>
> but on my laptop:
>
> [balld@localhost java]$ ls -l sitemap.xsl
> -rw-r--r-- 1 balld balld 62824 Jun 11 15:18 sitemap.xsl
>
> [balld@localhost java]$ cvs status sitemap.xsl
> Warning: Remote host denied X11 forwarding.
> ===================================================================
> File: sitemap.xsl Status: Up-to-date
>
> Working revision: 1.7
> Repository revision: 1.7
> /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl,v
> Sticky Tag: 1.7
^^^^^
See, you have a stick tag sitting on the sitemap.xsl. Try to do a
cvs upd -A sitemap.xsl
Current revision is either 1.11.2.6 for the 20 branch or 1.15 for the
2.1 HEAD.
Giacomo
> Sticky Date: (none)
> Sticky Options: (none)
>
> [balld@localhost java]$ cat CVS/Root
> :ext:balld@xml.apache.org:/home/cvs
> [balld@localhost java]$ cat CVS/Repository
> xml-cocoon2/src/org/apache/cocoon/components/language/markup/sitemap/java
> [balld@localhost java]$ ls -l CVS/
> total 16
> -rw-r--r-- 1 balld balld 50 Jun 11 15:18 Entries
> -rw-r--r-- 1 balld balld 74 May 16 23:12 Repository
> -rw-r--r-- 1 balld balld 36 May 30 14:58 Root
> -rw-r--r-- 1 balld balld 846 May 16 23:12 Template
>
> any clues what's going wrong?
>
> - donald
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: action broken in latest cvs
Posted by Donald Ball <ba...@webslingerZ.com>.
On Mon, 11 Jun 2001, Davanum Srinivas wrote:
> FYI, just did a get from cvs, cleanedup my work directory and was able
> to run the samples with no problems.
i'm checking out the HEAD branch - 2.1. i just checked it again and it
does not work. hmm. okay, i checked out a clean anonyous copy of the
repository on another computer. the sitemap stylesheet files differ!
[root@chngw xml-cocoon2]# ls -l sitemap.xsl
-rw-r--r-- 1 root root 68724 Jun 11 14:51 sitemap.xsl
but on my laptop:
[balld@localhost java]$ ls -l sitemap.xsl
-rw-r--r-- 1 balld balld 62824 Jun 11 15:18 sitemap.xsl
[balld@localhost java]$ cvs status sitemap.xsl
Warning: Remote host denied X11 forwarding.
===================================================================
File: sitemap.xsl Status: Up-to-date
Working revision: 1.7
Repository revision: 1.7
/home/cvs/xml-cocoon2/src/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl,v
Sticky Tag: 1.7
Sticky Date: (none)
Sticky Options: (none)
[balld@localhost java]$ cat CVS/Root
:ext:balld@xml.apache.org:/home/cvs
[balld@localhost java]$ cat CVS/Repository
xml-cocoon2/src/org/apache/cocoon/components/language/markup/sitemap/java
[balld@localhost java]$ ls -l CVS/
total 16
-rw-r--r-- 1 balld balld 50 Jun 11 15:18 Entries
-rw-r--r-- 1 balld balld 74 May 16 23:12 Repository
-rw-r--r-- 1 balld balld 36 May 30 14:58 Root
-rw-r--r-- 1 balld balld 846 May 16 23:12 Template
any clues what's going wrong?
- donald
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: action broken in latest cvs
Posted by Davanum Srinivas <di...@yahoo.com>.
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 <ba...@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