cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "cristafol" <crista...@terra.es>
Subject acces to Xindice from an action component
Date Tue, 31 Dec 2002 13:58:28 GMT
Hi, 
 
I´d made an action component based in SourceTypeAction
(http://xml.apache.org/forrest/cap.html). Assigns an XSL to an XML file.
 
Source source = sourceResolver.resolve(src);
InputStream is = source.getInputStream();     //don´t work
 
Error:
Thread-9/ExcaliburComponentSelector: UnnamedSelector: ComponentSelector
could not find the component for hint [xml]
org.apache.cocoon.ProcessingException: could not lookup pipeline
components: org.apache.avalon.framework.component.ComponentException:
UnnamedSelector: ComponentSelector could not find the component for hint
[xml]
at
org.apache.cocoon.components.source.AbstractSAXSource.getInputStream(Abs
tractSAXSource.java:133)
            at
meslluny.cocoon.components.actions.SourceTypeAction.act(SourceTypeAction
.java:67)
            at
org.apache.cocoon.www.file_.C_.jakarta_tomcat_4_1_12_LE_jdk14.webapps.co
coon.fpml.sitemap_xmap.matchN400032(C:\jakarta-tomcat-4.1.12-LE-jdk14\wo
rk\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/file_/
C_/jakarta_tomcat_4_1_12_LE_jdk14/webapps/cocoon/fpml\sitemap_xmap.java:
537)
            at
org.apache.cocoon.www.file_.C_.jakarta_tomcat_4_1_12_LE_jdk14.webapps.co
coon.fpml.sitemap_xmap.process(C:\jakarta-tomcat-4.1.12-LE-jdk14\work\St
andalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/file_/C_/ja
karta_tomcat_4_1_12_LE_jdk14/webapps/cocoon/fpml\sitemap_xmap.java:385)
            at
org.apache.cocoon.www.file_.C_.jakarta_tomcat_4_1_12_LE_jdk14.webapps.co
coon.fpml.sitemap_xmap.process(C:\jakarta-tomcat-4.1.12-LE-jdk14\work\St
andalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/file_/C_/ja
karta_tomcat_4_1_12_LE_jdk14/webapps/cocoon/fpml\sitemap_xmap.java:321)
            at
org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
 
 
This pipeline works fine
 
<map:match pattern="xmldb/**/*.xml">
   <map:generate src="xmldb:xindice://localhost:4080/db/{1}/{2}.xml"/>
   <map:act type="sourcetype" src="stylesheets/sps/examples/{2}.xml">
      <map:parameter name="fxSingleLeg"
value="FpML.trade.fxSingleLeg"/>
      <map:parameter name="fxSwap"          value="FpML.trade.fxSwap"/>
      <map:transform src="stylesheets/{sourcetype}.xsl"/>
      <map:serialize type="html"/>
   </map:act> 
</map:match>
 
but this don´t work  (The error is of this pipeline)
 
<map:match pattern="xmldb/**/*.xml">
   <map:generate src="xmldb:xindice://localhost:4080/db/{1}/{2}.xml"/>
   <map:act type="sourcetype"
src="xmldb:xindice://localhost:4080/db/{1}/{2}.xml">
      <map:parameter name="fxSingleLeg"
value="FpML.trade.fxSingleLeg"/>
      <map:parameter name="fxSwap"          value="FpML.trade.fxSwap"/>
      <map:transform src="stylesheets/{sourcetype}.xsl"/>
      <map:serialize type="html"/>
   </map:act> 
</map:match>
 
How can I acces to an xml file in Xindice in an action component?
What am I doing wrong?
Thanks
C.Bellés
 
 
 
 
 

Mime
View raw message