You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by bi...@jpmorgan.com on 2005/07/07 00:00:02 UTC

Building iBATIS_DBL-2.1.0.565

Hi,

I just downloaded iBATIS_DBL-2.1.0.565.zip, importied source files into
WSAD, and tried to build it. I encounterted some problems:

1. Unresolvable import files:

// in file com.ibatis.db.dao.jdbc.SqlMap2DaoTransaction.java
import com.ibatis.db.dao.DaoException;
import com.ibatis.db.dao.DaoTransaction;

// in file com.ibatis.db.dao.jdbc.SqlMap2DaoTransactionPool.java
import com.ibatis.db.dao.DaoException;
import com.ibatis.db.dao.DaoTransaction;
import com.ibatis.db.dao.DaoTransactionPool;

2. Methods setHoldability(), getHoldability(), and setSavepoint() are
undefined for type Connection in file
com.ibatis.common.jdbc.SimpleDataSource.java. The type SavePoint cannot be
resolved either in the same file.

   public void setHoldability(int holdability) throws SQLException {
      getValidConnection().setHoldability(holdability);
    }

    public int getHoldability() throws SQLException {
      return getValidConnection().getHoldability();
    }

    public Savepoint setSavepoint() throws SQLException {
      return getValidConnection().setSavepoint();
    }

    public Savepoint setSavepoint(String name) throws SQLException {
      return getValidConnection().setSavepoint(name);
    }

    public void rollback(Savepoint savepoint) throws SQLException {
      getValidConnection().rollback(savepoint);
    }

    public void releaseSavepoint(Savepoint savepoint) throws SQLException {
      getValidConnection().releaseSavepoint(savepoint);
    }

    public Statement createStatement(int resultSetType, int
resultSetConcurrency,
                                     int resultSetHoldability) throws
SQLException {
      return getValidConnection().createStatement(resultSetType,
resultSetConcurrency, resultSetHoldability);
    }

    public PreparedStatement prepareStatement(String sql, int
resultSetType,
                                              int resultSetConcurrency, int
resultSetHoldability)
        throws SQLException {
      return getValidConnection().prepareStatement(sql, resultSetType,
resultSetConcurrency, resultSetHoldability);
    }

    public CallableStatement prepareCall(String sql, int resultSetType,
                                         int resultSetConcurrency,
                                         int resultSetHoldability) throws
SQLException {
      return getValidConnection().prepareCall(sql, resultSetType,
resultSetConcurrency, resultSetHoldability);
    }

Help would be appriciated.

Thanks,
Biao Xue


This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein 
do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries 
and affiliates.


Re: Building iBATIS_DBL-2.1.0.565

Posted by Clinton Begin <cl...@gmail.com>.
You're compiling under an incompatible JDK. Two questions:

1) Which JDK are you using?
2) Why are you compiling from the source?

Cheers,
Clinton


On 7/6/05, biao.xue@jpmorgan.com <bi...@jpmorgan.com> wrote:
> 
> 
> Hi,
> 
> I just downloaded iBATIS_DBL-2.1.0.565.zip, importied source files into
> WSAD, and tried to build it. I encounterted some problems:
> 
> 1. Unresolvable import files:
> 
> // in file com.ibatis.db.dao.jdbc.SqlMap2DaoTransaction.java
> import com.ibatis.db.dao.DaoException;
> import com.ibatis.db.dao.DaoTransaction;
> 
> // in file com.ibatis.db.dao.jdbc.SqlMap2DaoTransactionPool.java
> import com.ibatis.db.dao.DaoException;
> import com.ibatis.db.dao.DaoTransaction;
> import com.ibatis.db.dao.DaoTransactionPool;
> 
> 2. Methods setHoldability(), getHoldability(), and setSavepoint() are
> undefined for type Connection in file
> com.ibatis.common.jdbc.SimpleDataSource.java. The type SavePoint cannot be
> resolved either in the same file.
> 
> public void setHoldability(int holdability) throws SQLException {
> getValidConnection().setHoldability(holdability);
> }
> 
> public int getHoldability() throws SQLException {
> return getValidConnection().getHoldability();
> }
> 
> public Savepoint setSavepoint() throws SQLException {
> return getValidConnection().setSavepoint();
> }
> 
> public Savepoint setSavepoint(String name) throws SQLException {
> return getValidConnection().setSavepoint(name);
> }
> 
> public void rollback(Savepoint savepoint) throws SQLException {
> getValidConnection().rollback(savepoint);
> }
> 
> public void releaseSavepoint(Savepoint savepoint) throws SQLException {
> getValidConnection().releaseSavepoint(savepoint);
> }
> 
> public Statement createStatement(int resultSetType, int
> resultSetConcurrency,
> int resultSetHoldability) throws
> SQLException {
> return getValidConnection().createStatement(resultSetType,
> resultSetConcurrency, resultSetHoldability);
> }
> 
> public PreparedStatement prepareStatement(String sql, int
> resultSetType,
> int resultSetConcurrency, int
> resultSetHoldability)
> throws SQLException {
> return getValidConnection().prepareStatement(sql, resultSetType,
> resultSetConcurrency, resultSetHoldability);
> }
> 
> public CallableStatement prepareCall(String sql, int resultSetType,
> int resultSetConcurrency,
> int resultSetHoldability) throws
> SQLException {
> return getValidConnection().prepareCall(sql, resultSetType,
> resultSetConcurrency, resultSetHoldability);
> }
> 
> Help would be appriciated.
> 
> Thanks,
> Biao Xue
> 
> 
> This communication is for informational purposes only. It is not intended
> as an offer or solicitation for the purchase or sale of any financial
> instrument or as an official confirmation of any transaction. All market 
> prices,
> data and other information are not warranted as to completeness or 
> accuracy and
> are subject to change without notice. Any comments or statements made 
> herein
> do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries
> and affiliates.
> 
>

Re: Building iBATIS_DBL-2.1.0.565

Posted by Larry Meadors <la...@gmail.com>.
Just run the build.bat file.

On 7/6/05, biao.xue@jpmorgan.com <bi...@jpmorgan.com> wrote:
> 
> Hi,
> 
> I just downloaded iBATIS_DBL-2.1.0.565.zip, importied source files into
> WSAD, and tried to build it. I encounterted some problems:
> 
> 1. Unresolvable import files:
> 
> // in file com.ibatis.db.dao.jdbc.SqlMap2DaoTransaction.java
> import com.ibatis.db.dao.DaoException;
> import com.ibatis.db.dao.DaoTransaction;
> 
> // in file com.ibatis.db.dao.jdbc.SqlMap2DaoTransactionPool.java
> import com.ibatis.db.dao.DaoException;
> import com.ibatis.db.dao.DaoTransaction;
> import com.ibatis.db.dao.DaoTransactionPool;
> 
> 2. Methods setHoldability(), getHoldability(), and setSavepoint() are
> undefined for type Connection in file
> com.ibatis.common.jdbc.SimpleDataSource.java. The type SavePoint cannot be
> resolved either in the same file.
> 
>    public void setHoldability(int holdability) throws SQLException {
>       getValidConnection().setHoldability(holdability);
>     }
> 
>     public int getHoldability() throws SQLException {
>       return getValidConnection().getHoldability();
>     }
> 
>     public Savepoint setSavepoint() throws SQLException {
>       return getValidConnection().setSavepoint();
>     }
> 
>     public Savepoint setSavepoint(String name) throws SQLException {
>       return getValidConnection().setSavepoint(name);
>     }
> 
>     public void rollback(Savepoint savepoint) throws SQLException {
>       getValidConnection().rollback(savepoint);
>     }
> 
>     public void releaseSavepoint(Savepoint savepoint) throws SQLException {
>       getValidConnection().releaseSavepoint(savepoint);
>     }
> 
>     public Statement createStatement(int resultSetType, int
> resultSetConcurrency,
>                                      int resultSetHoldability) throws
> SQLException {
>       return getValidConnection().createStatement(resultSetType,
> resultSetConcurrency, resultSetHoldability);
>     }
> 
>     public PreparedStatement prepareStatement(String sql, int
> resultSetType,
>                                               int resultSetConcurrency, int
> resultSetHoldability)
>         throws SQLException {
>       return getValidConnection().prepareStatement(sql, resultSetType,
> resultSetConcurrency, resultSetHoldability);
>     }
> 
>     public CallableStatement prepareCall(String sql, int resultSetType,
>                                          int resultSetConcurrency,
>                                          int resultSetHoldability) throws
> SQLException {
>       return getValidConnection().prepareCall(sql, resultSetType,
> resultSetConcurrency, resultSetHoldability);
>     }
> 
> Help would be appriciated.
> 
> Thanks,
> Biao Xue
> 
> 
> This communication is for informational purposes only. It is not intended
> as an offer or solicitation for the purchase or sale of any financial
> instrument or as an official confirmation of any transaction. All market prices,
> data and other information are not warranted as to completeness or accuracy and
> are subject to change without notice. Any comments or statements made herein
> do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries
> and affiliates.
> 
>