This post originated from an RSS feed registered with Java Buzz
by Vinny Carpenter.
Original Post: Spring 1.1.1 and iBATIS 2.0.7
Feed Title: Vinny Carpenter's Blog
Feed URL: http://www.j2eegeek.com/error.html
Feed Description: Welcome to my blog. I am a total Java geek that lives in Milwaukee, making my living as an architect/developer, spending all my time with Java, J2EE, OO, Linux, and open source. In my spare time, when I am not in front of my computers, I spend every other minute with my other loves: My wife, books, music, guitars, Formula-1 racing and StarGate. Check out my blog @ http://www.j2eegeek.com/blog
Another RTFM moment - I was working on retrofitting an old application that used my own persistence framework to use iBATIS SQL Maps with the Spring DAO framework and running into a bizarre error. I kept getting the error: java.lang.NoClassDefFoundError: com/ibatis/db/sqlmap/XmlSqlMapBuilder and it turned out that my DAO implementations were extending SqlMapFactoryBean instead of SqlMapClientFactoryBean. The documentation clearly states that I should use SqlMapClientFactoryBean, but I wasn't. Thanks to Nilesh for the clarification
By the way, if you haven't looked at Spring or just it's DAO framework, you should explore it as it simplifies the development process and minimizes the amount of code you write. I just rewrote some of my POC applications using Spring's DAO framework that used iBATIS and Hibernate under the covers. By using the templates classes provided by Spring, I wrote about 40% of the code I would have normally written using iBATIS or Hibernate by themselves.