cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco Pauck <pa...@wmd.de>
Subject Re: MySQL Database Adaptor (Cocoon 1.8)
Date Thu, 14 Dec 2000 09:17:32 GMT
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

Mime
View raw message