shannon     2002/06/18 08:48:34

  Modified:    src/documentation/xdocs/faq Tag: cocoon_2_0_3_branch
                        faq-databases.xml
  Log:
  sync with HEAD
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.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.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- faq-databases.xml 7 Jun 2002 19:45:13 -0000       1.1.2.1
  +++ faq-databases.xml 18 Jun 2002 15:48:34 -0000      1.1.2.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:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to