cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Huttar" <>
Subject "no control flows defined", but there are!?
Date Tue, 07 Sep 2004 21:34:29 GMT
Dear Cocoon list,

I'm having some trouble setting up a simple CForms example. I'm
following the instructions at
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:

Failed to load sitemap from file:/c:/Program Files/Apache Group/Tomcat
This sitemap contains no control flows defined, cannot call at
Define a control flow using <map:flow>, with embedded <map:script> elements.

It says the sitemap contains no control flows defined, yet I have
one defined just like it's specified in the instructions:

 <map:flow language="javascript">
  <map:script src="flow/update.js"/>
(under <map:components>)

My flow/update.js file looks like this:


 function update_Linguistic_Subgroup() {
     var form = new Form("forms/update-Linguistic_Subgroup.xml");


     var model = form.getModel();
     var bizdata = { "LS_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
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,

View raw message