Moving to the user list.

---------- Forwarded message ----------
From: Nathan Maves <[EMAIL PROTECTED]>
Date: Aug 11, 2006 12:48 PM
Subject: Fwd: iBATIS-131 Combatibility JAVA1.5 / tomcat 5.5
To: [EMAIL PROTECTED]



Begin forwarded message:

From: "Khanna, Vijay (GE, Corporate, consultant)" < [EMAIL PROTECTED]>
Date: August 11, 2006 12:44:10 PM MDT
Subject: RE: iBATIS-131 Combatibility JAVA1.5 / tomcat 5.5

Ok. Thanks. Is it under August 06 thread ?
 
I moved ahead by making changes to the Convert.java where the ClassCastException was raised. Not its IOException. I made some changes again to the SqlMapXmlConverter, but theres no way out.
 
[convertSqlMaps] Copying 1 file to C:\convertSqlMaps
[convertSqlMaps] FROM FILE -D:\supportcentral\v2.2_fixes\Ibatis_migration\xmlconversion\sqlmap-1x\ltFaxboardSQLMappings.
xml
[convertSqlMaps] TO FILE -[Ljava.lang.String;@17e4ca
[convertSqlMaps] SqlMap PATH - file:/D:/supportcentral/v2.2_fixes/Ibatis_migration/xmlconversion/lib/ibatis/1-x-Compatib
ility/ibatis-sqlmap-2.jar!/com/ibatis/db/sqlmap/upgrade/SqlMap.xsl
[convertSqlMaps] com.ibatis.common.exception.NestedRuntimeException: Error.  Cause: java.io.IOException: Could not find
resource file:/D:/supportcentral/v2.2_fixes/Ibatis_migration/xmlconversion/lib/ibatis/1-x-Compatib
ility/ibatis-sqlmap-2.jar!/com/ibatis/db/sqlmap/upgrade/SqlMap.xsl
[convertSqlMaps] Caused by: java.io.IOException: Could not find resource file:/D:/supportcentral/v2.2_fixes/Ibatis_migration/xmlconversion/lib/ibatis/1-x-Compatib
ility/ibatis-sqlmap-2.jar!/com/ibatis/db/sqlmap/upgrade/SqlMap.xsl
[convertSqlMaps]        at com.ibatis.db.sqlmap.upgrade.SqlMapXmlConverter.convertXml(SqlMapXmlConverter.java:89)
[convertSqlMaps]        at com.ibatis.db.sqlmap.upgrade.SqlMapXmlConverter.convertFile (SqlMapXmlConverter.java:114)
[convertSqlMaps]        at com.ibatis.db.sqlmap.upgrade.ConvertTask.doFileOperations(ConvertTask.java:80)
[convertSqlMaps]        at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java :430)
 
Thanks,
Vijay Khanna
Desk : 203-326-2365
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 11, 2006 2:39 PM
To: [email protected]
Cc: Khanna, Vijay (GE, Corporate, consultant)
Subject: Re: iBATIS-131 Combatibility JAVA1.5 / tomcat 5.5

Vijay,

I am taking this topic to the user list.  All questions should be asked there.  That way all questions and answers can be archived and searched though.

I would need a lot more to try and help you.  Please provide the full stack trace of the exception when you run this ant task.

Nathan

On Aug 11, 2006, at 11:22 AM, Khanna, Vijay (GE, Corporate, consultant) wrote:

Hi Nathan,
 
We are in the process of converting Ibatis sqlmaps 1.x to 2.x as we intend to move torwards 2.1.7. The ant tasks is fails "java.lang.ClassCastException". Any thoughts ?
 
 
Here's my 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
Desk : 203-326-2365
 


Reply via email to