Return-Path:
Delivered-To: apmail-cocoon-users-archive@www.apache.org
Received: (qmail 33684 invoked from network); 7 Sep 2004 21:34:50 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199)
by minotaur-2.apache.org with SMTP; 7 Sep 2004 21:34:50 -0000
Received: (qmail 4274 invoked by uid 500); 7 Sep 2004 21:34:38 -0000
Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org
Received: (qmail 4182 invoked by uid 500); 7 Sep 2004 21:34:37 -0000
Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm
Precedence: bulk
list-help:
list-unsubscribe:
list-post:
Reply-To: users@cocoon.apache.org
Delivered-To: mailing list users@cocoon.apache.org
Received: (qmail 4169 invoked by uid 99); 7 Sep 2004 21:34:37 -0000
X-ASF-Spam-Status: No, hits=1.3 required=10.0
tests=FORGED_OUTLOOK_TAGS,HTML_50_60,HTML_MESSAGE,PLING_QUERY
X-Spam-Check-By: apache.org
Received-SPF: pass (hermes.apache.org: local policy)
Received: from [208.145.81.85] (HELO mail.link77.net) (208.145.81.85)
by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 07 Sep 2004 14:34:36 -0700
X-Scanned-By: RAE MPP/ClamAV http://raeinternet.com/mpp
Received: from [172.20.6.151] (account lars_huttar@mail.jaars.org HELO
dnshuttar)
by mail.link77.net (CommuniGate Pro SMTP 4.1.8)
with ESMTP-TLS id 47794863 for users@cocoon.apache.org;
Tue, 07 Sep 2004 17:38:46 -0400
Reply-To:
From: "Lars Huttar"
To: "Cocoon Users List \(E-mail\)"
Subject: "no control flows defined", but there are!?
Date: Tue, 7 Sep 2004 16:34:29 -0500
Message-ID: <008201c49522$7603e550$0100007f@dallas.sil.org>
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_NextPart_000_0083_01C494F8.8D2DDD50"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook CWS, Build 9.0.6604 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
X-Virus-Checked: Checked
X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N
------=_NextPart_000_0083_01C494F8.8D2DDD50
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Dear Cocoon list,
I'm having some trouble setting up a simple CForms example. I'm
following the instructions at
http://cocoon.apache.org/2.1/userdocs/forms/sample.html
but modifying things cosmetically for my own example.
My problem is, when I try to access anything via the sitemap
that governs my example, the sitemap fails to load, with the
following error:
org.apache.cocoon.ProcessingException:
Failed to load sitemap from file:/c:/Program Files/Apache Group/Tomcat
4.1/webapps/cocoon/mount/gem/test/sitemap.xmap:
org.apache.avalon.framework.configuration.ConfigurationException:
This sitemap contains no control flows defined, cannot call at
file:/c:/Program%20Files/Apache%20Group/Tomcat%204.1/webapps/cocoon/mount/gem/test/sitemap.xmap:28:
54.
Define a control flow using , with embedded elements.
It says the sitemap contains no control flows defined, yet I have
one defined just like it's specified in the instructions:
(under )
My flow/update.js file looks like this:
cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/Form.js");
function update_Linguistic_Subgroup() {
var form = new Form("forms/update-Linguistic_Subgroup.xml");
form.showForm("update-display-pipeline");
var model = form.getModel();
var bizdata = { "LS_name" : model.name }
cocoon.sendPage("update-success-pipeline", bizdata);
}
Could the error above be caused by this update.js file containing
some sort of error and therefore failing to load?
E.g. if Form.js (first line) is not found?
However, sample files like
samples/blocks/forms/flow/registration.js
load the same Form.js, and they have no such problems.
I'll attach several of the files involved, in case it helps.
(update.js is in a "flows" subdirectory. *.xml and *.jx are
in a "forms" subdirectory.)
Thanks for any hints,
Lars
------=_NextPart_000_0083_01C494F8.8D2DDD50
Content-Type: text/html;
name="index.html"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="index.html"
Simple Cocoon Forms test page