ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Khanna, Vijay \(GE, Corporate, consultant\)" <vijay.kha...@ge.com>
Subject RE: Maps 1.x to 2.x ANT task fails..
Date Wed, 16 Aug 2006 14:18:22 GMT
Hi David,

Looks like you found a workaround at such a critical time. Let me try
this..

BTW, did it solve both the issues 1) ClassCast & 2)finding the xsl
file..? 


Thanks,
Vijay Khanna

-----Original Message-----
From: David Gagnon [mailto:dgagnon@siunik.com] 
Sent: Wednesday, August 16, 2006 10:19 AM
To: user-java@ibatis.apache.org
Subject: Re: Maps 1.x to 2.x ANT task fails..

Hi,


  Im doing the conversion right now .. I got this problem and solve it
by using an older version of ANT., i.e.: 1.5.4

My problem is that the task dont find the SqlMap.xsl even though it`s in
the classpath....I you find an answer to this error let me know

Best Regards
/David


Khanna, Vijay (GE, Corporate, consultant) wrote:
> Hello I am trying to run the ANT task to convert sqlmaps from 1.x to 
> 2.x. But getting ClassCastException.
>  
> OUTPUT
> -------------
> D:\supportcentral\v2.2_fixes\Ibatis_migration\xmlconversion>ant main
> Buildfile: build.xml
>  
> main:
> [convertSqlMaps] Copying 1 file to C:\convertSqlMaps
>  
> BUILD FAILED
>
D:\supportcentral\v2.2_fixes\Ibatis_migration\xmlconversion\build.xml:15
: 
> java.lang.ClassCastException
>  
> Total time: 0 seconds
> D:\supportcentral\v2.2_fixes\Ibatis_migration\xmlconversion>
>  
> BUILD.XML
> -----------------
> <project basedir="." default="main">
>  
>  <path id="lib.path">
>   <fileset dir="lib/ibatis">
>    <include name="**/*.jar"/>
>   </fileset>
>  </path>
>  
>  
>  <taskdef name="convertSqlMaps"
>   classname="com.ibatis.db.sqlmap.upgrade.ConvertTask"
>   classpathref="lib.path"/>
>  
>  <target name="main">
>         <convertSqlMaps todir="c:/convertSqlMaps"  overwrite="true">
>    <fileset
>
dir="D:/supportcentral/v2.2_fixes/Ibatis_migration/xmlconversion/sqlmap-
1x">
>     <include name="**/*.xml"/>
>                </fileset>
>           </convertSqlMaps>
>  </target>
>  
> </project>
>  
> Thanks,
> *Vijay Khanna*
>  



Mime
View raw message