cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Katrin_Seiff...@mn.man.de
Subject Antwort: RE: SQL Connection-Pool with DB2
Date Mon, 27 Nov 2000 14:46:02 GMT

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(ConnectionPool.java:193)

at
org.apache.turbine.util.db.pool.ConnectionPool.getConnection(ConnectionPool.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.executeQuery(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.processConnection(HttpConnectionHandler.java:160)

at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.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






Mime
View raw message