You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Brian P Millett <bp...@ec-group.com> on 2000/09/21 15:36:56 UTC

Re: ESQL/Turbine not working with Informix DB (is this a pool thing?)

Luis Gois wrote:

> Hello!
> I'm trying to access an Informix DB using ESQL (Cocoon 1.8-dev), but,
> although cocoon.properties has a pool adaptor listed for Informix
> IfxDriver, the generated XML cames like this :
>
>   ----------------------------------------------------------------------------------------------------
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
> <page>
>
> <error>Database type com.informix.jdbc.IfxDriver not implemented.</error><stacktrace>java.lang.InstantiationException: Database type com.informix.jdbc.IfxDriver not implemented.
>         at org.apache.turbine.util.db.pool.DBFactory.create(DBFactory.java, Compiled Code)
>         at org.apache.turbine.util.db.pool.ConnectionPool.getNewConnection(ConnectionPool.java, Compiled Code)
>         at org.apache.turbine.util.db.pool.ConnectionPool.getConnection(ConnectionPool.java, Compiled Code)
>         at org.apache.turbine.util.db.pool.DBBroker.getConnection(DBBroker.java, Compiled Code)
>         at org.apache.turbine.util.db.pool.DBBroker.getConnection(DBBroker.java, Compiled Code)
>         at _usr._appl._mercado._unstable._local._src._xml._esql_proc._esql_execute_query_Nc486788b(_esql_proc.java, Compiled Code)
>         at _usr._appl._mercado._unstable._local._src._xml._esql_proc.populateDocument(_esql_proc.java, Compiled Code)
>         at org.apache.cocoon.processor.xsp.XSPPage.getDocument(XSPPage.java, Compiled Code)
>         at org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java, Compiled Code)
>         at org.apache.cocoon.Engine.handle(Engine.java, Compiled Code)
>         at org.apache.cocoon.Cocoon.service(Cocoon.java, Compiled Code)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
>         at org.apache.jserv.JServConnection.processRequest(JServConnection.java, Compiled Code)
>         at org.apache.jserv.JServConnection.run(JServConnection.java, Compiled Code)
>         at java.lang.Thread.run(Thread.java, Compiled Code)
> </stacktrace>
>
> </page>
> <!-- This page was served in 4401 milliseconds by Cocoon 1.8-dev -->

Well, Luis
    You will get this error if the cocoon.properties are not set up correctly.  Do you have this in the properties file?

processor.xsp.pool.database.adaptor=DBInformix
processor.xsp.pool.database.adaptor.DBInformix=com.informix.jdbc.IfxDriver

Is the ifxjdbc.jar in your class path?

Looking at the error also seems that the turbine-pool.jar might not be correct.  Is that the pool jar file from cvs?


--
Brian Millett
Enterprise Consulting Group   "Shifts in paradigms
(314) 205-9030               often cause nose bleeds."
bpm@ec-group.com                           Greg Glenn