ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Czurak" <pczu...@wsinc.com>
Subject RE: iBator and DB2
Date Sat, 25 Apr 2009 15:04:45 GMT
Thanks, that worked

-----Original Message-----
From: Jeff Butler [mailto:jeffgbutler@gmail.com] 
Sent: Friday, April 24, 2009 10:07 AM
To: user-java@ibatis.apache.org
Subject: Re: iBator and DB2

You need to add <classPathEntry> elements for the driver and license JARs.

Jeff Butler


On Fri, Apr 24, 2009 at 12:14 AM, Peter Czurak <pczurak@wsinc.com> wrote:
> I am using iBator 2.1 with Eclipse 3.4.2 and iBatis 2.3.4.726
>
>
>
> When I right click on the ibatorConfig.xml file and select Generate iBATIS
> Artifacts I get the following error message
>
>
>
> Unexpected error while running Ibator.
>
> Exception getting JDBC Driver
>
>
>
> The following java code works fine, so I know the driver name is correct.
>
>
>
> Class.forName("com.ibm.db2.jcc.DB2Driver").newInstance();
>
>
>
>
>
> What am I doing wrong?
>
>
>
> Here's my ibatorConfig.xml file
>
>
>
> <?xml version="1.0" encoding="UTF-8" ?>
>
> <!DOCTYPE ibatorConfiguration PUBLIC "-//Apache Software Foundation//DTD
> Apache iBATIS Ibator Configuration 1.0//EN"
> "http://ibatis.apache.org/dtd/ibator-config_1_0.dtd" >
>
> <ibatorConfiguration >
>
>   <ibatorContext id="context1" >
>
>     <jdbcConnection driverClass="com.ibm.db2.jcc.DB2Driver"
>
>     connectionURL="jdbc:db2://server.domain.com:60000/TEST"
>
>     userId="test" password="test"/>
>
>     <javaModelGenerator targetPackage="com.wsinc.track.model"
> targetProject="PeopleSoftConnector" />
>
>     <sqlMapGenerator targetPackage="com.wsinc.track.map"
> targetProject="PeopleSoftConnector" />
>
>     <daoGenerator targetPackage="com.wsinc.track.dao"
> targetProject="PeopleSoftConnector" type="GENERIC-CI" />
>
>     <table schema="PRINT" tableName="Track" >
>
>       <columnOverride column="???" property="???" />
>
>     </table>
>
>   </ibatorContext>
>
> </ibatorConfiguration>
>
>
>
>
>
> Thank you,
>
> Peter Czurak
> Phone (920) 830-5104 or (800) 999-2545 ext. 5104
> E-mail - pczurak@wsinc.com
>
>

Mime
View raw message