cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bertrand Delacretaz <bdelacre...@codeconsult.ch>
Subject SOLVED: SQLTransformer, AbstractMethodError in prepareStatement
Date Tue, 18 Jun 2002 09:34:58 GMT
On Tuesday 18 June 2002 10:33, Bertrand Delacretaz wrote:
>. . .
> It looks like the connection opens correctly, but then I get "500 internal
> error" from Cocoon, and the following messages in the tomcat logs:
>
> java.lang.AbstractMethodError
>         at
> org.apache.avalon.excalibur.datasource.JdbcConnection.prepareStatement
>....

I found my problem: the JDBC driver I'm using is not JDBC 1.2 compliant - 
need to tell the SQLTransformer to use the "old-driver" interface by 
configuring it like follows in the sitemap:

<map:transformer 
	logger="sitemap.transformer.sql-old" 
	name="sql-old" 
	src="org.apache.cocoon.transformation.SQLTransformer"
>
	<old-driver>true</old-driver>
</map:transformer> 

And then use <map:transform type="sql-old"> in the sitemap.

-Bertrand

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message