cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shan...@apache.org
Subject cvs commit: xml-cocoon2/src/documentation/xdocs/faq faq-databases.xml
Date Tue, 18 Jun 2002 15:43:24 GMT
shannon     2002/06/18 08:43:24

  Modified:    src/documentation/xdocs/faq faq-databases.xml
  Log:
  applied Bertrand Delacretaz's new FAQ
  
  Revision  Changes    Path
  1.2       +32 -1     xml-cocoon2/src/documentation/xdocs/faq/faq-databases.xml
  
  Index: faq-databases.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/documentation/xdocs/faq/faq-databases.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- faq-databases.xml	13 May 2002 17:55:25 -0000	1.1
  +++ faq-databases.xml	18 Jun 2002 15:43:24 -0000	1.2
  @@ -83,6 +83,37 @@
    </answer>
   </faq>
   
  -
  +<faq>
  + <question>
  +   I get an AbstractMethodError when Cocoon tries to query my database.
  + </question>
  + <answer>
  +   <p>
  +    In this case Cocoon returns a "500 internal error" result, and the 
  +    AbstractMethodError is visible in the tomcat logs after a call to
  +    Connection.prepareStatement(...).
  +   </p>
  +   <p>
  +    This happens when the JDBC driver being used does not implement the
  +    JDBC 1.2 interfaces: using its default configuration, the SQLTransformer 
  +    calls a version of the JDBC Connection.prepareStatement(...) method that is not
  +    available in pre-1.2 drivers.
  +   </p>
  +   <p>
  +    To avoid this problem, configure the SQLTransformer with "old-driver=true" in the
  +    sitemap, as shown in this example:
  +   </p>
  +    
  +        <source><![CDATA[
  +        <map:transformer 
  +          logger="sitemap.transformer.sql" 
  +          name="sql" 
  +          src="org.apache.cocoon.transformation.SQLTransformer"
  +        >
  +          <old-driver>true</old-driver>
  +        </map:transformer> 
  +        ]]></source>
  + </answer>
  +</faq>
   
   </faqs>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message