cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mauro Canal" <mca...@dachcomdigital.com>
Subject RE: Antwort: RE: SQL Connection-Pool with DB2
Date Mon, 27 Nov 2000 15:15:49 GMT
this error also means that the JDBC-Package for DB2 ist not in your
CLASSPATH.
make shure the db2java.zip and databean.jar (from SQLLIB\java) is in your
tomcat\lib directory (I had the same problem with Tomcat 3.2).

if you are using JDBC 2.0, you first have to call
SQLLIB\java12\usejdbc2.bat.
after that use the new db2java.zip from SQLLIB\java.

Mauro Canal

> -----Original Message-----
> From: Katrin_Seiffert@mn.man.de [mailto:Katrin_Seiffert@mn.man.de]
> Sent: Monday, November 27, 2000 3:46 PM
> To: cocoon-users@xml.apache.org
> Subject: Antwort: RE: SQL Connection-Pool with DB2
>
>
>
> I have add the adabpor-definition to the cocoon-properties. But it's the
> same Exception. I don't understand that:
>
> java.lang.InstantiationException: Database type
> COM.ibm.db2.jdbc.app.DB2Driver not implemented. at
> org.apache.turbine.util.db.pool.DBFactory.create(DBFactory.java:135) at
> org.apache.turbine.util.db.pool.ConnectionPool.getNewConnection(Co
> nnectionPool.java:193)
>
> at
> org.apache.turbine.util.db.pool.ConnectionPool.getConnection(Conne
> ctionPool.java:153)
>
> at
> org.apache.turbine.util.db.pool.DBBroker.getConnection(DBBroker.java:161)
> at
> org.apache.turbine.util.db.pool.DBBroker.getConnection(DBBroker.java:135)
> at
> org.apache.cocoon.processor.xsp.library.sql.XSPSQLLibrary.executeQ
> uery(XSPSQLLibrary.java:99)
>
> at _C_._Programme._jakarta_tomcat2._webapps._bst.
> _hersteller.populateDocument(_hersteller.java, Compiled Code) at
> org.apache.cocoon.processor.xsp.XSPPage.getDocument(XSPPage.java:96) 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:167) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
> Compiled Code) at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnec
> tion(HttpConnectionHandler.java:160)
>
> at
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoin
> t.java:338)
>
> at java.lang.Thread.run(Thread.java:479)
>
>
> Katrin Seiffert
>
>
>
>
>
>                     "Mauro Canal"
>
>                     <mcanal@dachcomdi        An:
> <cocoon-users@xml.apache.org>
>                     gital.com>               Kopie:
>
>                                              Thema:  RE: SQL
> Connection-Pool with DB2
>                     27.11.00 10:28
>
>                     Bitte antworten
>
>                     an cocoon-users
>
>
>
>
>
>
>
>
>
> You must define the adaptors in cocoon.properties:
>
> processor.xsp.pool.database.adaptor=DBDB2Net,DBDB2App
> processor.xsp.pool.database.adaptor.DBDB2App=COM.ibm.db2.jdbc.net.
> DB2Driver
> processor.xsp.pool.database.adaptor.DBDB2Net=COM.ibm.db2.jdbc.app.
> DB2Driver
>
> Mauro Canal
> ...........................................................
>
> > -----Original Message-----
> > From: Katrin_Seiffert@mn.man.de [mailto:Katrin_Seiffert@mn.man.de]
> > Sent: Monday, November 27, 2000 8:44 AM
> > To: cocoon-users@xml.apache.org
> > Subject: SQL Connection-Pool with DB2
> >
> >
> >
> > I want to use the SQL Connection-Pool with DB2:
> >
> > The following have I add to the cocoon.properties-File:
> >
> >
> processor.xsp.pool.database.default.driver=COM.ibm.db2.jdbc.app.DB2Driver
> > processor.xsp.pool.database.default.url=jdbc:db2:TUCNBST4
> > processor.xsp.pool.database.default.username=db2admin
> > processor.xsp.pool.database.default.password=admin
> > processor.xsp.pool.database.default.maxConnections=3
> > processor.xsp.pool.database.default.expiryTime=3600000
> >
> > But  there is the following Exception:
> > java.lang.InstantiationException: Database type
> > COM.ibm.db2.jdbc.app.DB2Driver not implemented.
> >
> > Wath can I do?
> >
> >
> > Katrin Seiffert
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>
>
>
>
>
> ---------------------------------------------------------------------
> 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