cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Willem Penterman">
Subject SQLTransformer good, ESQL bad
Date Sat, 17 Aug 2002 21:13:55 GMT
I'm sorry to the spam the list like this, but now I've got the feeling
I'm really getting somewhere:

I've set up cocoon-2.0.3 binary release for j2sdk1.4 and added a pool
for MySQL Connector/J .

Now I've actually managed to get some row data from a MySQL database
using SQLTransformer!

But with ESQL it still fails in:

org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.RuntimeException: Error
opening connection to dburl: : No suitable driver

Now besides being curious about solving this error, I'd like to know why
or why not I should stickt with SQLTransformer. In other words, why
should I care about ESQL?


P.s. I'm not going to post the pool setup, since SQLTransformer clearly
got a connection from it so it works.


<?xml version="1.0"?>
				<!-- connection information -->
				<!-- SQL query -->
					select something from that 
				<!-- result processing elements -->

sitemap.xmap: (this is a subsitemap of cocoon/sitemap.xmap)

<?xml version="1.0"?>

<!-- sitemap for mysqltest -->

<map:sitemap xmlns:map="">

  <!-- ======= Components ======= -->
    <map:generators default="file">
        <map:generator label="content,data"
logger="sitemap.generator.serverpages" name="serverpages" pool-grow="2"
pool-max="32" pool-min="4"
    <map:transformers default="xslt"/>
    <map:readers default="resource"/>
    <map:serializers default="html"/>
    <map:selectors default="browser"/>
    <map:matchers default="wildcard">
      <map:matcher name="wildcard"

  <!-- ======= Pipelines ======= -->
		 <map:match pattern="index.html">
			<map:read src="documents/static/index.html"
		 <map:match pattern="esqltest.xml">
			<map:generate src="logic/query.xsp"
			<map:serialize type="xml"/>
		<map:match pattern="sqlttest.xml">
			<map:generate src="documents/mysqltest.xml"/>
			<map:transform type="sql">
		        <map:parameter name="use-connection"
			<map:serialize type="xml"/>

Please check that your question  has not already been answered in the
FAQ before posting.     <>

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

View raw message