Skip site navigation (1) Skip section navigation (2)

JDBC 2 question --- NoClassDefFoundError in Poolman

From: 이주형 <juice(at)dittotec(dot)com>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: JDBC 2 question --- NoClassDefFoundError in Poolman
Date: 2001-06-30 10:16:58
Message-ID: 009101c1014d$cb8c3e80$45b475d3@juice (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
Hi , you guys

I am in a trouble with a NoClassDefFoundError when executing Poolman sample file.
(Poolman is a connection pool manager that is said to be a good one, isn't it)

My system is Compaq DL320, 
OS : Redhat Linux 7.1
JDK : sun jdk1.3.1(j2se) + JDBC2 optional package ( jdbc2_0-stdext.jar -- CLASSPATH includes this)
POOL MANAGER : Poolman-2.0.4 ( I did installation as in README )
DB : Postgresql-7.1.2 
and I use jdbc driver when I compiled postgresql. - postgresql.jar(CLASSPATH also includes this)

poolman sample file compiled fine but didn't execute
$ javac - OK
$ java PoolManSample "select * from test_table" "mydb"

Executing sample of SQLUtil executing SQL from the specified database:

Exception in thread "main" java.lang.NoClassDefFoundError: javax/sql/ConnectionEventListener
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(
        at Method)
        at java.lang.ClassLoader.loadClass(
        at java.lang.ClassLoader.loadClass(
        at java.lang.ClassLoader.loadClassInternal(
        at com.codestudio.util.SQLUtil.getSQLManager(
        at com.codestudio.util.SQLUtil.executeSql(
        at com.codestudio.util.SQLUtil.execute(
        at PoolManSample.doSQL(
        at PoolManSample.main(

In addition , my java VM doesn't find methods of JDBC2 classes.  ( CLASSPATH includes all jar files)
but it find them well in Redhat Linux 7.0. 

It makes me crazy. help !!!

ps. Is there anyone who use poolman with postgresql ? 

pgsql-jdbc by date

Next:From: Arsalan ZaidiDate: 2001-06-30 10:50:10
Subject: New code for JDBC driver
Previous:From: Bruce MomjianDate: 2001-06-29 19:15:55
Subject: Re: Re: JDBC and security

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group