cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "rachid harradi" <>
Subject ComponentSelector could not find the component for hint
Date Tue, 12 Sep 2006 14:12:25 GMT

when i run this sitemap like:

<?xml version="1.0" encoding="UTF-8"?>
<map:sitemap xmlns:map="">

   <!-- Generator registrieren -->
   <map:generators default="myGenerator">
      <map:generator name="myGenerator" src="dbmanager.MyGenerator">
          <map:parameter name="storeLocation"/>

<map:flow language="javascript">
  <map:script src="savingtohtmlfile.js"/>


      <!-- Generator verwenden -->
      <map:match pattern="rachid/">
         <map:generate type="myGenerator" src=""/>
         <map:transform src="objection04.xslt"/>
         <map:serialize type="html"/>
    <map:match pattern="">
          <map:call function="makehtml">
        <map:parameter name="folder" value="{cocoon:/rachid/}"/>


my savingtohtmlfile.js is:
function makehtml() {
   var xml_file;
   var html_file;
   var outstreamHTML;

   // the parameter passed to the script from the pipeline. 
   // This is the real path to the application context
   var folder =["folder"]);           

   try {      
      // creating links to files
      html_file = folder + "/objectionHTML.html");
      xml_file = folder + "/objectionHTML.html");

      // creating outputstream to dump the results of conversion to the file
      outstreamHTML = new html_file );

      // calling cocoon pipeline using processPipelineTo() method and dumping the results
to the outputstream
      cocoon.processPipelineTo( "rachid/", null, outstreamPDF );

      // do not forget to close the outputstream

      // since the result is dumped to the filesystem we need to send smth. to the browser
      // to make it happy. So let's send just a usual .txt file with OK message
      cocoon.sendPage("yes.txt", null);

   } catch( ex ) {
      // Smth. went wrong. Sending a error.txt file to the browser
      cocoon.sendPage("error.txt", null);

i get this Error:

An error has occured

org.apache.avalon.framework.component.ComponentException: input-modules: ComponentSelector
could not find the component for hint [cocoon] (key [cocoon])

Cocoon stacktrace[hide]
Sitemap: error when calling sub-sitemap
file:/E:/workspace3/cocoon/build/webapp/sitemap.xmap - 947:66    <map:mount>

cann you help me!????

"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message