Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 77132 invoked from network); 14 Dec 2000 09:18:52 -0000 Received: from gate1.wmd.de (194.120.187.1) by locus.apache.org with SMTP; 14 Dec 2000 09:18:52 -0000 Received: (from smap@localhost) by gate1.wmd.de (8.7.6/8.8.5) id KAA27759; Thu, 14 Dec 2000 10:16:32 +0100 X-Authentication-Warning: gate1.wmd.de: smap set sender to using -f Received: from wmdhh(128.128.16.20) by gatekeeper.wmd.de via smap (V1.3) id sma027757; Thu Dec 14 10:16:25 2000 Received: from wmd.de (mpauck-isdn [10.9.29.7]) by wmdhh.wmd.de (8.8.5/8.8.5) with ESMTP id KAA08412; Thu, 14 Dec 2000 10:16:23 +0100 Message-ID: <3A38902C.39F25175@wmd.de> Date: Thu, 14 Dec 2000 10:17:32 +0100 From: Marco Pauck Reply-To: marco@pauck.de X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: de-DE,de,en MIME-Version: 1.0 To: cocoon-users@xml.apache.org, Roman Zamorski Subject: Re: MySQL Database Adaptor (Cocoon 1.8) References: <006a01c04978$e3564980$4f41023e@ptah> <3A0951EA.A7D3AA41@wmd.de> <01d901c06545$70482920$1564a8c0@bellstream> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Roman Zamorski wrote: > > > Andreas Neuenschwander wrote: > > > > > > In the new Cocoon 1.8 rlease the turbine package is integrated. > > > > > > My question is now why there is the MySQL Database Adaptor (in the > > > Turbine package) missing? > > > > No problem, simply use DBMM: > > > > processor.xsp.pool.database.adaptor.DBMM=org.gjt.mm.mysql.Driver > > processor.xsp.pool.database.default.driver=org.gjt.mm.mysql.Driver > > processor.xsp.pool.database.default.url=jdbc:mysql://localhost/db1 > > > > Does it really works for you? Yes, trust me ;-) > I only got the following message: > > >Database type org.gjt.mm.mysql.Driver not implemented. > > > >java.lang.InstantiationException: Database type org.gjt.mm.mysql.Driver not > implemented. at > >org.apache.turbine.util.db.pool.DBFactory.create(DBFactory.java:135) at > >org.apache.turbine.util.db.pool.ConnectionPool.getNewConnection(ConnectionP > ool.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 > ... > > Is it some version problem or what? I use cocoon v1.8 + jserv 1.1.2 + > unknown version of mm driver... An "unkown version" always asks for problems ... ;-) We're using mm.mysql-2.0.2 here. BTW: Do you have *all* relevant entries in cocoon.properties: processor.xsp.pool.database.adaptor=DBMM processor.xsp.pool.database.adaptor.DBMM=org.gjt.mm.mysql.Driver processor.xsp.pool.database.default.driver=org.gjt.mm.mysql.Driver processor.xsp.pool.database.default.url=jdbc:mysql://localhost/db processor.xsp.pool.database.default.username=whoever processor.xsp.pool.database.default.password=whatever processor.xsp.pool.database.default.maxConnections=30 processor.xsp.pool.database.default.expiryTime=3600000 Marco