Vijay,
But as you can see, it can't find your Sqlmap file. Do you have
the path correct? Perhaps it is that exclamation point in the path.
Diran
Nathan Maves wrote:
---------- Forwarded message ----------
From: Nathan
Maves <[EMAIL PROTECTED]>
Date: Aug 11, 2006 12:52 PM
Subject: Re: more details..
To: "Khanna, Vijay (GE, Corporate, consultant)" <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
As I said please do not send me direct emails... The
is a community project and support is driven by the community as well.
Please send all emails to
On Aug 11, 2006, at 12:47 PM, Khanna, Vijay (GE, Corporate,
consultant) wrote:
Some more..details
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
at
com.ibatis.common.resources.Resources.getResourceAsStream(Resources.java:101)
at com.ibatis.common.resources.Resources.getResourceAsStream
(Resources.java:86)
at
com.ibatis.common.resources.Resources.getResourceAsReader(Resources.java:150)
at
com.ibatis.db.sqlmap.upgrade.SqlMapXmlConverter.convertXml(SqlMapXmlConverter.java:76)
at
com.ibatis.db.sqlmap.upgrade.SqlMapXmlConverter.convertFile(SqlMapXmlConverter.java:114)
Thanks,
Vijay Khanna
Desk : 203-326-2365
From: Khanna, Vijay (GE,
Corporate, consultant)
Sent: Friday, August 11, 2006 2:44 PM
To: '
[EMAIL PROTECTED]'
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
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
|