commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Owens (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DBCP-374) commons-dbcp-1.4-src compile fail with apache-ant-1.8.2 and jdk1.7.0_02 and jdk1.6.0_29
Date Wed, 21 Dec 2011 14:03:30 GMT
commons-dbcp-1.4-src compile fail with apache-ant-1.8.2 and jdk1.7.0_02 and jdk1.6.0_29
---------------------------------------------------------------------------------------

                 Key: DBCP-374
                 URL: https://issues.apache.org/jira/browse/DBCP-374
             Project: Commons Dbcp
          Issue Type: Bug
    Affects Versions: 1.4
         Environment: Red Hat Enterprise Linux Server release 5.7 (Tikanga)
Linux 2.6.18-274.7.1.el5 #1 SMP Mon Oct 17 11:57:14 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
            Reporter: Stephen Owens


I downloaded commons-dbcp-1.4-src.tar.gz, untarred it to ~/commons-dbcp-1.4-src,
With ANT_HOME set to commons-dbcp-1.4-src and JAVA_HOME set to jdk1.7.0_02 
I ran ant dist and got the following errors:
$ ant dist
Buildfile: /home/sai/commons-dbcp-1.4-src/build.xml

init:

clean:

check_depends:
     [echo] Checking dependencies

check_jar:

check_message:
     [echo] Could not find /home/sai/commons-dbcp-1.4-src/../pool/dist/commons-pool.jar

check_jar:

check_message:
     [echo] Could not find ${junit.jar}

check_jar:

check_message:
     [echo] Could not find ${naming-common.jar}

check_jar:

check_message:
     [echo] Could not find ${naming-java.jar}

check_jar:

check_message:
     [echo] Could not find ${commons-logging.jar}

check_jar:

check_message:
     [echo] Could not find ${xerces.jar}

check_jar:

check_message:
     [echo] Could not find ${jta-spec.jar}

check_jar:

check_message:
     [echo] Could not find ${jta-impl.jar}

check_jar:

check_message:
     [echo] Could not find ${backport-util-concurrent.jar}

check_jar:

check_message:
     [echo] Could not find ${ejb-spec.jar}

prepare-nojdbc4:

prepare-jdbc4:
     [echo] JDBC 4 was detected.

prepare:

compile:
    [mkdir] Created dir: /home/sai/commons-dbcp-1.4-src/build/classes
    [javac] /home/sai/commons-dbcp-1.4-src/build.xml:197: warning: 'includeantruntime' was
not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 53 source files to /home/sai/commons-dbcp-1.4-src/build/classes
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/AbandonedObjectPool.java:24:
error: package org.apache.commons.pool does not exist
    [javac] import org.apache.commons.pool.PoolableObjectFactory;
    [javac]                               ^
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/AbandonedObjectPool.java:25:
error: package org.apache.commons.pool.impl does not exist
    [javac] import org.apache.commons.pool.impl.GenericObjectPool;
    [javac]                                    ^
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/AbandonedObjectPool.java:36:
error: cannot find symbol
    [javac] public class AbandonedObjectPool extends GenericObjectPool {
    [javac]                                          ^
    [javac]   symbol: class GenericObjectPool
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/AbandonedObjectPool.java:54:
error: cannot find symbol
    [javac]     public AbandonedObjectPool(PoolableObjectFactory factory,
    [javac]                                ^
    [javac]   symbol:   class PoolableObjectFactory
    [javac]   location: class AbandonedObjectPool
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/BasicDataSource.java:33:
error: package org.apache.commons.pool does not exist
    [javac] import org.apache.commons.pool.KeyedObjectPoolFactory;
    [javac]                               ^
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/BasicDataSource.java:34:
error: package org.apache.commons.pool.impl does not exist
    [javac] import org.apache.commons.pool.impl.GenericKeyedObjectPool;
    [javac]                                    ^
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/BasicDataSource.java:35:
error: package org.apache.commons.pool.impl does not exist
    [javac] import org.apache.commons.pool.impl.GenericKeyedObjectPoolFactory;
    [javac]                                    ^
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/BasicDataSource.java:36:
error: package org.apache.commons.pool.impl does not exist
    [javac] import org.apache.commons.pool.impl.GenericObjectPool;
    [javac]                                    ^
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/BasicDataSource.java:1011:
error: cannot find symbol
    [javac]     protected volatile GenericObjectPool connectionPool = null;
    [javac]                        ^
    [javac]   symbol:   class GenericObjectPool
    [javac]   location: class BasicDataSource
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/BasicDataSource.java:1530:
error: cannot find symbol
    [javac]             KeyedObjectPoolFactory statementPoolFactory, AbandonedConfig configuration)
throws SQLException {
    [javac]             ^
    [javac]   symbol:   class KeyedObjectPoolFactory
    [javac]   location: class BasicDataSource
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:26:
error: package org.apache.commons.pool does not exist
    [javac] import org.apache.commons.pool.KeyedObjectPool;
    [javac]                               ^
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:27:
error: package org.apache.commons.pool does not exist
    [javac] import org.apache.commons.pool.KeyedObjectPoolFactory;
    [javac]                               ^
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:28:
error: package org.apache.commons.pool does not exist
    [javac] import org.apache.commons.pool.PoolableObjectFactory;
    [javac]                               ^
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:29:
error: package org.apache.commons.pool does not exist
    [javac] import org.apache.commons.pool.ObjectPool;
    [javac]                               ^
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:41:
error: cannot find symbol
    [javac] public class PoolableConnectionFactory implements PoolableObjectFactory {
    [javac]                                                   ^
    [javac]   symbol: class PoolableObjectFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:51:
error: cannot find symbol
    [javac]     public PoolableConnectionFactory(ConnectionFactory connFactory, ObjectPool
pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, boolean defaultReadOnly,
boolean defaultAutoCommit) {
    [javac]                                                                     ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:51:
error: cannot find symbol
    [javac]     public PoolableConnectionFactory(ConnectionFactory connFactory, ObjectPool
pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, boolean defaultReadOnly,
boolean defaultAutoCommit) {
    [javac]                                                                              
       ^
    [javac]   symbol:   class KeyedObjectPoolFactory
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:72:
error: cannot find symbol
    [javac]     public PoolableConnectionFactory(ConnectionFactory connFactory, ObjectPool
pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, Collection connectionInitSqls,
boolean defaultReadOnly, boolean defaultAutoCommit) {
    [javac]                                                                     ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:72:
error: cannot find symbol
    [javac]     public PoolableConnectionFactory(ConnectionFactory connFactory, ObjectPool
pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, Collection connectionInitSqls,
boolean defaultReadOnly, boolean defaultAutoCommit) {
    [javac]                                                                              
       ^
    [javac]   symbol:   class KeyedObjectPoolFactory
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:94:
error: cannot find symbol
    [javac]     public PoolableConnectionFactory(ConnectionFactory connFactory, ObjectPool
pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, int validationQueryTimeout,
boolean defaultReadOnly, boolean defaultAutoCommit) {
    [javac]                                                                     ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:94:
error: cannot find symbol
    [javac]     public PoolableConnectionFactory(ConnectionFactory connFactory, ObjectPool
pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, int validationQueryTimeout,
boolean defaultReadOnly, boolean defaultAutoCommit) {
    [javac]                                                                              
       ^
    [javac]   symbol:   class KeyedObjectPoolFactory
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:117:
error: cannot find symbol
    [javac]     public PoolableConnectionFactory(ConnectionFactory connFactory, ObjectPool
pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, int validationQueryTimeout,
Collection connectionInitSqls, boolean defaultReadOnly, boolean defaultAutoCommit) {
    [javac]                                                                     ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:117:
error: cannot find symbol
    [javac]     public PoolableConnectionFactory(ConnectionFactory connFactory, ObjectPool
pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, int validationQueryTimeout,
Collection connectionInitSqls, boolean defaultReadOnly, boolean defaultAutoCommit) {
    [javac]                                                                              
       ^
    [javac]   symbol:   class KeyedObjectPoolFactory
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:139:
error: cannot find symbol
    [javac]     public PoolableConnectionFactory(ConnectionFactory connFactory, ObjectPool
pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, boolean defaultReadOnly,
boolean defaultAutoCommit, int defaultTransactionIsolation) {
    [javac]                                                                     ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:139:
error: cannot find symbol
    [javac]     public PoolableConnectionFactory(ConnectionFactory connFactory, ObjectPool
pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, boolean defaultReadOnly,
boolean defaultAutoCommit, int defaultTransactionIsolation) {
    [javac]                                                                              
       ^
    [javac]   symbol:   class KeyedObjectPoolFactory
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:162:
error: cannot find symbol
    [javac]     public PoolableConnectionFactory(ConnectionFactory connFactory, ObjectPool
pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, Collection connectionInitSqls,
boolean defaultReadOnly, boolean defaultAutoCommit, int defaultTransactionIsolation) {
    [javac]                                                                     ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:162:
error: cannot find symbol
    [javac]     public PoolableConnectionFactory(ConnectionFactory connFactory, ObjectPool
pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, Collection connectionInitSqls,
boolean defaultReadOnly, boolean defaultAutoCommit, int defaultTransactionIsolation) {
    [javac]                                                                              
       ^
    [javac]   symbol:   class KeyedObjectPoolFactory
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:186:
error: cannot find symbol
    [javac]     public PoolableConnectionFactory(ConnectionFactory connFactory, ObjectPool
pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, int validationQueryTimeout,
boolean defaultReadOnly, boolean defaultAutoCommit, int defaultTransactionIsolation) {
    [javac]                                                                     ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:186:
error: cannot find symbol
    [javac]     public PoolableConnectionFactory(ConnectionFactory connFactory, ObjectPool
pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, int validationQueryTimeout,
boolean defaultReadOnly, boolean defaultAutoCommit, int defaultTransactionIsolation) {
    [javac]                                                                              
       ^
    [javac]   symbol:   class KeyedObjectPoolFactory
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:211:
error: cannot find symbol
    [javac]     public PoolableConnectionFactory(ConnectionFactory connFactory, ObjectPool
pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, int validationQueryTimeout,
Collection connectionInitSqls, boolean defaultReadOnly, boolean defaultAutoCommit, int defaultTransactionIsolation)
{
    [javac]                                                                     ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:211:
error: cannot find symbol
    [javac]     public PoolableConnectionFactory(ConnectionFactory connFactory, ObjectPool
pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, int validationQueryTimeout,
Collection connectionInitSqls, boolean defaultReadOnly, boolean defaultAutoCommit, int defaultTransactionIsolation)
{
    [javac]                                                                              
       ^
    [javac]   symbol:   class KeyedObjectPoolFactory
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:236:
error: cannot find symbol
    [javac]         ObjectPool pool,
    [javac]         ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:237:
error: cannot find symbol
    [javac]         KeyedObjectPoolFactory stmtPoolFactory,
    [javac]         ^
    [javac]   symbol:   class KeyedObjectPoolFactory
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:266:
error: cannot find symbol
    [javac]         ObjectPool pool,
    [javac]         ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:267:
error: cannot find symbol
    [javac]         KeyedObjectPoolFactory stmtPoolFactory,
    [javac]         ^
    [javac]   symbol:   class KeyedObjectPoolFactory
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:299:
error: cannot find symbol
    [javac]         ObjectPool pool,
    [javac]         ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:300:
error: cannot find symbol
    [javac]         KeyedObjectPoolFactory stmtPoolFactory,
    [javac]         ^
    [javac]   symbol:   class KeyedObjectPoolFactory
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:334:
error: cannot find symbol
    [javac]         ObjectPool pool,
    [javac]         ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:335:
error: cannot find symbol
    [javac]         KeyedObjectPoolFactory stmtPoolFactory,
    [javac]         ^
    [javac]   symbol:   class KeyedObjectPoolFactory
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:371:
error: cannot find symbol
    [javac]         ObjectPool pool,
    [javac]         ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:372:
error: cannot find symbol
    [javac]         KeyedObjectPoolFactory stmtPoolFactory,
    [javac]         ^
    [javac]   symbol:   class KeyedObjectPoolFactory
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:410:
error: cannot find symbol
    [javac]         ObjectPool pool,
    [javac]         ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:411:
error: cannot find symbol
    [javac]         KeyedObjectPoolFactory stmtPoolFactory,
    [javac]         ^
    [javac]   symbol:   class KeyedObjectPoolFactory
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:450:
error: cannot find symbol
    [javac]         ObjectPool pool,
    [javac]         ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:451:
error: cannot find symbol
    [javac]         KeyedObjectPoolFactory stmtPoolFactory,
    [javac]         ^
    [javac]   symbol:   class KeyedObjectPoolFactory
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:520:
error: cannot find symbol
    [javac]     synchronized public void setPool(ObjectPool pool) {
    [javac]                                      ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:535:
error: cannot find symbol
    [javac]     public synchronized ObjectPool getPool() {
    [javac]                         ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:545:
error: cannot find symbol
    [javac]     public void setStatementPoolFactory(KeyedObjectPoolFactory stmtPoolFactory)
{
    [javac]                                         ^
    [javac]   symbol:   class KeyedObjectPoolFactory
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:726:
error: cannot find symbol
    [javac]     protected volatile ObjectPool _pool = null;
    [javac]                        ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java:727:
error: cannot find symbol
    [javac]     protected volatile KeyedObjectPoolFactory _stmtPoolFactory = null;
    [javac]                        ^
    [javac]   symbol:   class KeyedObjectPoolFactory
    [javac]   location: class PoolableConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableCallableStatement.java:26:
error: package org.apache.commons.pool does not exist
    [javac] import org.apache.commons.pool.KeyedObjectPool;
    [javac]                               ^
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableCallableStatement.java:43:
error: cannot find symbol
    [javac]     private final KeyedObjectPool _pool;
    [javac]                   ^
    [javac]   symbol:   class KeyedObjectPool
    [javac]   location: class PoolableCallableStatement
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableCallableStatement.java:58:
error: cannot find symbol
    [javac]     public PoolableCallableStatement(CallableStatement stmt, Object key, KeyedObjectPool
pool, Connection conn) {
    [javac]                                                                          ^
    [javac]   symbol:   class KeyedObjectPool
    [javac]   location: class PoolableCallableStatement
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnection.java:22:
error: package org.apache.commons.pool does not exist
    [javac] import org.apache.commons.pool.ObjectPool;
    [javac]                               ^
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnection.java:37:
error: cannot find symbol
    [javac]     protected ObjectPool _pool = null;
    [javac]               ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolableConnection
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnection.java:44:
error: cannot find symbol
    [javac]     public PoolableConnection(Connection conn, ObjectPool pool) {
    [javac]                                                ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolableConnection
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableConnection.java:55:
error: cannot find symbol
    [javac]     public PoolableConnection(Connection conn, ObjectPool pool, AbandonedConfig
config) {
    [javac]                                                ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolableConnection
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolablePreparedStatement.java:26:
error: package org.apache.commons.pool does not exist
    [javac] import org.apache.commons.pool.KeyedObjectPool;
    [javac]                               ^
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolablePreparedStatement.java:45:
error: cannot find symbol
    [javac]     protected KeyedObjectPool _pool = null;
    [javac]               ^
    [javac]   symbol:   class KeyedObjectPool
    [javac]   location: class PoolablePreparedStatement
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolablePreparedStatement.java:61:
error: cannot find symbol
    [javac]     public PoolablePreparedStatement(PreparedStatement stmt, Object key, KeyedObjectPool
pool, Connection conn) {
    [javac]                                                                          ^
    [javac]   symbol:   class KeyedObjectPool
    [javac]   location: class PoolablePreparedStatement
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolingConnection.java:27:
error: package org.apache.commons.pool does not exist
    [javac] import org.apache.commons.pool.KeyedObjectPool;
    [javac]                               ^
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolingConnection.java:28:
error: package org.apache.commons.pool does not exist
    [javac] import org.apache.commons.pool.KeyedPoolableObjectFactory;
    [javac]                               ^
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolingConnection.java:45:
error: cannot find symbol
    [javac] public class PoolingConnection extends DelegatingConnection implements Connection,
KeyedPoolableObjectFactory {
    [javac]                                                                              
     ^
    [javac]   symbol: class KeyedPoolableObjectFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolingConnection.java:47:
error: cannot find symbol
    [javac]     protected KeyedObjectPool _pstmtPool = null;
    [javac]               ^
    [javac]   symbol:   class KeyedObjectPool
    [javac]   location: class PoolingConnection
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolingConnection.java:69:
error: cannot find symbol
    [javac]     public PoolingConnection(Connection c, KeyedObjectPool pool) {
    [javac]                                            ^
    [javac]   symbol:   class KeyedObjectPool
    [javac]   location: class PoolingConnection
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolingDataSource.java:33:
error: package org.apache.commons.pool does not exist
    [javac] import org.apache.commons.pool.ObjectPool;
    [javac]                               ^
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolingDataSource.java:54:
error: cannot find symbol
    [javac]     public PoolingDataSource(ObjectPool pool) {
    [javac]                              ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolingDataSource
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolingDataSource.java:58:
error: cannot find symbol
    [javac]     public void setPool(ObjectPool pool) throws IllegalStateException, NullPointerException
{
    [javac]                         ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolingDataSource
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolingDataSource.java:168:
error: cannot find symbol
    [javac]     protected ObjectPool _pool = null;
    [javac]               ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolingDataSource
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolingDriver.java:39:
error: package org.apache.commons.pool does not exist
    [javac] import org.apache.commons.pool.ObjectPool;
    [javac]                               ^
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolingDriver.java:96:
error: cannot find symbol
    [javac]     public synchronized ObjectPool getPool(String name) {
    [javac]                         ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolingDriver
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolingDriver.java:105:
error: cannot find symbol
    [javac]     public synchronized ObjectPool getConnectionPool(String name) throws SQLException
{
    [javac]                         ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolingDriver
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolingDriver.java:143:
error: cannot find symbol
    [javac]     public synchronized void registerPool(String name, ObjectPool pool) {
    [javac]                                                        ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolingDriver
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolingDriver.java:256:
error: cannot find symbol
    [javac]         private final ObjectPool pool;
    [javac]                       ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolGuardConnectionWrapper
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolingDriver.java:259:
error: cannot find symbol
    [javac]         PoolGuardConnectionWrapper(ObjectPool pool, Connection delegate) {
    [javac]                                    ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class PoolGuardConnectionWrapper
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/cpdsadapter/PooledConnectionImpl.java:36:
error: package org.apache.commons.pool does not exist
    [javac] import org.apache.commons.pool.KeyedObjectPool;
    [javac]                               ^
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/cpdsadapter/PooledConnectionImpl.java:37:
error: package org.apache.commons.pool does not exist
    [javac] import org.apache.commons.pool.KeyedPoolableObjectFactory;
    [javac]                               ^
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/cpdsadapter/PooledConnectionImpl.java:47:
error: cannot find symbol
    [javac]         implements PooledConnection, KeyedPoolableObjectFactory {
    [javac]                                      ^
    [javac]   symbol: class KeyedPoolableObjectFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/cpdsadapter/PooledConnectionImpl.java:83:
error: cannot find symbol
    [javac]     protected KeyedObjectPool pstmtPool = null;
    [javac]               ^
    [javac]   symbol:   class KeyedObjectPool
    [javac]   location: class PooledConnectionImpl
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/cpdsadapter/PooledConnectionImpl.java:95:
error: cannot find symbol
    [javac]     PooledConnectionImpl(Connection connection, KeyedObjectPool pool) {
    [javac]                                                 ^
    [javac]   symbol:   class KeyedObjectPool
    [javac]   location: class PooledConnectionImpl
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/cpdsadapter/DriverAdapterCPDS.java:37:
error: package org.apache.commons.pool does not exist
    [javac] import org.apache.commons.pool.KeyedObjectPool;
    [javac]                               ^
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/cpdsadapter/DriverAdapterCPDS.java:38:
error: package org.apache.commons.pool.impl does not exist
    [javac] import org.apache.commons.pool.impl.GenericKeyedObjectPool;
    [javac]                                    ^
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/cpdsadapter/PoolablePreparedStatementStub.java:23:
error: package org.apache.commons.pool does not exist
    [javac] import org.apache.commons.pool.KeyedObjectPool;
    [javac]                               ^
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/cpdsadapter/PoolablePreparedStatementStub.java:44:
error: cannot find symbol
    [javac]             KeyedObjectPool pool, Connection conn) {
    [javac]             ^
    [javac]   symbol:   class KeyedObjectPool
    [javac]   location: class PoolablePreparedStatementStub
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/datasources/CPDSConnectionFactory.java:33:
error: package org.apache.commons.pool does not exist
    [javac] import org.apache.commons.pool.ObjectPool;
    [javac]                               ^
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/datasources/CPDSConnectionFactory.java:34:
error: package org.apache.commons.pool does not exist
    [javac] import org.apache.commons.pool.PoolableObjectFactory;
    [javac]                               ^
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/datasources/CPDSConnectionFactory.java:44:
error: cannot find symbol
    [javac]         implements PoolableObjectFactory, ConnectionEventListener, PooledConnectionManager
{
    [javac]                    ^
    [javac]   symbol: class PoolableObjectFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/datasources/CPDSConnectionFactory.java:53:
error: cannot find symbol
    [javac]     private final ObjectPool _pool;
    [javac]                   ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class CPDSConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/datasources/CPDSConnectionFactory.java:82:
error: cannot find symbol
    [javac]                                  ObjectPool pool,
    [javac]                                  ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class CPDSConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/datasources/CPDSConnectionFactory.java:105:
error: cannot find symbol
    [javac]                                   ObjectPool pool,
    [javac]                                   ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class CPDSConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/datasources/CPDSConnectionFactory.java:124:
error: cannot find symbol
    [javac]      public ObjectPool getPool() {
    [javac]             ^
    [javac]   symbol:   class ObjectPool
    [javac]   location: class CPDSConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/datasources/InstanceKeyDataSource.java:38:
error: package org.apache.commons.pool.impl does not exist
    [javac] import org.apache.commons.pool.impl.GenericObjectPool;
    [javac]                                    ^
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/datasources/KeyedCPDSConnectionFactory.java:33:
error: package org.apache.commons.pool does not exist
    [javac] import org.apache.commons.pool.KeyedObjectPool;
    [javac]                               ^
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/datasources/KeyedCPDSConnectionFactory.java:34:
error: package org.apache.commons.pool does not exist
    [javac] import org.apache.commons.pool.KeyedPoolableObjectFactory;
    [javac]                               ^
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/datasources/KeyedCPDSConnectionFactory.java:44:
error: cannot find symbol
    [javac]     implements KeyedPoolableObjectFactory, ConnectionEventListener, PooledConnectionManager
{
    [javac]                ^
    [javac]   symbol: class KeyedPoolableObjectFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/datasources/KeyedCPDSConnectionFactory.java:53:
error: cannot find symbol
    [javac]     private final KeyedObjectPool _pool;
    [javac]                   ^
    [javac]   symbol:   class KeyedObjectPool
    [javac]   location: class KeyedCPDSConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/datasources/KeyedCPDSConnectionFactory.java:74:
error: cannot find symbol
    [javac]                                       KeyedObjectPool pool,
    [javac]                                       ^
    [javac]   symbol:   class KeyedObjectPool
    [javac]   location: class KeyedCPDSConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/datasources/KeyedCPDSConnectionFactory.java:91:
error: cannot find symbol
    [javac]                                       KeyedObjectPool pool,
    [javac]                                       ^
    [javac]   symbol:   class KeyedObjectPool
    [javac]   location: class KeyedCPDSConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/datasources/KeyedCPDSConnectionFactory.java:106:
error: cannot find symbol
    [javac]     public KeyedObjectPool getPool() {
    [javac]            ^
    [javac]   symbol:   class KeyedObjectPool
    [javac]   location: class KeyedCPDSConnectionFactory
    [javac] /home/sai/commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/datasources/PerUserPoolDataSource.java:36:
error: package org.apache.commons.pool does not exist
    [javac] import org.apache.commons.pool.ObjectPool;
    [javac]                               ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 100 errors
    [javac] 1 warning

BUILD FAILED
/home/sai/commons-dbcp-1.4-src/build.xml:197: Compile failed; see the compiler error output
for details.

Total time: 4 seconds

I tried compiling dbcp with java jdk1.6.0_29 and got the same errors

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message