We found a problem when use ibatis 2.3.4 in spring dm,ibatis can't find
sql-map2.dtd,and try to resolve it by network.
By digging the source
code(com.ibatis.sqlmap.engine.builder.xml.SqlMapClasspathEntityResolver and
com.ibatis.common.resources.Resources),we found ibatis will always find the
[
https://issues.apache.org/jira/browse/IBATIS-620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12739392#action_12739392
]
Yuan Tao commented on IBATIS-620:
-
The fix solution imported other bugs. so now, I have no
Improper cache create mechanism
---
Key: IBATIS-621
URL: https://issues.apache.org/jira/browse/IBATIS-621
Project: iBatis for Java
Issue Type: Bug
Affects Versions: 3.0.0
Reporter: Yuan Tao
1. find which the jar com.ibatis.common.resources.Resources is in
2. load the resource xxx.dtd from the jar use the ClassLoader which load
the com.ibatis.common.resources.Resources class
this maybe work, and is inspired by the yui compressor's JarClassLoader
Clinton Begin wrote:
And how do
You could do this pretty transparently:
1) try Thread.blah.blah.blah to get the resource
2) if the resource is null, use Resources.class.getClassLoader()
Make the change, write a test, and attach the source files to a JIRA issue.
Larry
On Wed, Aug 5, 2009 at 8:34 PM,