Does ibatis 2.x OSGi ready?

2009-08-05 Thread Argan
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

[jira] Commented: (IBATIS-620) select count(*) from table return BigDecimal value in Oracle

2009-08-05 Thread Yuan Tao (JIRA)
[ 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

[jira] Created: (IBATIS-621) Improper cache create mechanism

2009-08-05 Thread Yuan Tao (JIRA)
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

Re: Does ibatis 2.x OSGi ready?

2009-08-05 Thread Argan
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

Re: Does ibatis 2.x OSGi ready?

2009-08-05 Thread Larry Meadors
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,