cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ferran Urgell <urgsi...@yahoo.com>
Subject RE: Trying to connect mysql to cocoon2 (more)
Date Thu, 08 Nov 2001 10:28:47 GMT

I'm trying to get somtehing via Mysql and not works....
This is my sitemap....
<map:match pattern="sql/prova">
    <map:generate src="docs/samples/sql/sql.xml"/>
   <map:transform type="sql">
      <map:parameter name="use-connection" value="test"/>
    </map:transform>
    <map:transform src="stylesheets/sim.xsl"/>
    <map:serialize/>
   </map:match>
sql.xml
<?xml version="1.0"?>
<page xmlns:sql="http://apache.org/cocoon/SQL/2.0">
 <title>Hello</title>
 <content>
  <para>This is my first Cocoon2 page filled with sql data!</para>
  <execute-query xmlns="http://apache.org/cocoon/SQL/2.0"> 
   <query>
        select id,name from department_table
   </query>
  </execute-query>
 </content>
</page>
sim.xsl
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                              xmlns:sql="http://apache.org/cocoon/SQL/2.0">
 <xsl:import href="page/simple-page2html.xsl"/>      
<xsl:output method="html" encoding="UTF-8"/>
  <xsl:template match="/">
  <html>
    <xsl:apply-templates/>
   <h1>gogogog</h1>
</hmtl>
  </xsl:template>
</xsl:stylesheet>
and not works......

org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.RuntimeException:
Problem in getTransformer:Error in creating Transform Handler

org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.RuntimeException:
Problem in getTransformer:Error in creating Transform Handler	at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:379)
at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN400452(sitemap_xmap.java:5861)	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2579)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2181)	at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:116)	at org.apache.cocoon.Cocoon.process(Cocoon.java:495)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:534)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
Source)	at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)	at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
Source)	at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)	at org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)	at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)	at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
Source)




---------------------------------
Do You Yahoo!?
Find a job, post your resume on Yahoo! Careers.
Mime
View raw message