Sorry, I do not have much help to offer. Your stack trace seems almost void
of references to Turbine code, so it makes it difficult. Do you have the
turbine.log working? You need to create an empty file and point to it in
TurbineResources.properties.
Also, once you solve your problem, I would recommend putting the release
connection statement in a finally clause.
John McNally
----- Original Message -----
From: Nissim <[EMAIL PROTECTED]>
To: Turbine <[EMAIL PROTECTED]>
Sent: Wednesday, February 23, 2000 6:34 AM
Subject: Trouble trying to use turbine pool
> Hi All,
>
> I'm trying to use the DB Connection pool from Turbine in my
> application. The code in my servlet looks like this:
>
> ...
> import org.apache.turbine.util.db.pool.*;
> ...
>
> try {
> file://Get a connection from the global DB broker
> DBConnection db =
> DBBroker.getInstance().getConnection("postgresql.Driver",
>
> "jdbc:postgresql:nonemp",
> "nissim",
> "passwd");
> Connection connG = db.getConnection();
> out.println(Section.getSectionList(connG, null));
> DBBroker.getInstance().releaseConnection(db);
> }
> catch (Exception e) {
> e.printStackTrace(out);
> }
>
> ...
>
> The first time the servlet is called, the log shows an
> ExceptionInInitializerError, and all of the following times, a
> NoClassDefFoundError. The log looks like this:
>
> [23/02/2000 09:25:50:334 EST] java.lang.ExceptionInInitializerError
> at
> org.apache.jserv.JServConnection.processRequest(JServConnection.java:320)
> at
> org.apache.jserv.JServConnection.run(JServConnection.java:188)
> at java.lang.Thread.run(Thread.java)
> [23/02/2000 09:26:10:350 EST] java.lang.NoClassDefFoundError:
> org/apache/turbine/util/db/pool/DBFactory
> at
> org.apache.jserv.JServConnection.processRequest(JServConnection.java:320)
> at
> org.apache.jserv.JServConnection.run(JServConnection.java:188)
> at java.lang.Thread.run(Thread.java)
>
> The turbine classes are in the repositories...
>
> Here's the jserv.properties stuff:
>
> wrapper.classpath=/usr/local/blackdown/jdk117_v3/lib/classes.zip
> wrapper.classpath=/usr/lib/jar/ecs-1.2.jar
> wrapper.classpath=/usr/lib/jar/village-1.1.jar
> wrapper.classpath=/usr/lib/jar/jndi.jar
> wrapper.classpath=/usr/lib/jar/postgresql.jar
> wrapper.classpath=/usr/lib/apache/ApacheJServ.jar
> wrapper.classpath=/usr/lib/jar/ApacheJSSI.jar
> wrapper.classpath=/usr/local/javasoft/JSDK2.0/lib/jsdk.jar
>
> And here's the zone.properties stuff:
>
> repositories=/usr/servlets
> repositories=/usr/lib/jar/turbine-2.0.jar
> repositories=/home/nissim/nonemp/classes
>
> Can anyone help to shed some light on this?
>
> Thanks
>
> -Nissim
>
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]