You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by rachid harradi <ra...@gmx.net> on 2006/09/12 16:12:25 UTC
ComponentSelector could not find the component for hint
Hello
when i run this sitemap like:
<?xml version="1.0" encoding="UTF-8"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<map:components>
<!-- Generator registrieren -->
<map:generators default="myGenerator">
<map:generator name="myGenerator" src="dbmanager.MyGenerator">
<map:parameter name="storeLocation"/>
</map:generator>
</map:generators>
</map:components>
<map:flow language="javascript">
<map:script src="savingtohtmlfile.js"/>
</map:flow>
<map:pipelines>
<map:pipeline>
<!-- Generator verwenden -->
<map:match pattern="rachid/">
<map:generate type="myGenerator" src=""/>
<map:transform src="objection04.xslt"/>
<map:serialize type="html"/>
</map:match>
</map:pipeline>
<map:pipeline>
<map:match pattern="">
<map:call function="makehtml">
<map:parameter name="folder" value="{cocoon:/rachid/}"/>
</map:call>
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>
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 = Packages.java.lang.String(cocoon.parameters["folder"]);
try {
// creating links to files
html_file = Packages.java.io.File( folder + "/objectionHTML.html");
xml_file = Packages.java.io.File( folder + "/objectionHTML.html");
// creating outputstream to dump the results of conversion to the file
outstreamHTML = new Packages.java.io.FileOutputStream( 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
outstreamHTML.close();
// 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 ) {
cocoon.log.error(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: http://www.gmx.net/de/go/topmail
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org