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 {
  //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]

Reply via email to