I'm trying to use the JdbcTemplate queryForRowSet method (Spring 1.2 final), but I'm getting the following error:
java.lang.NoClassDefFoundError: javax/sql/rowset/CachedRowSet
It appears that javax.sql.rowset.CachedRowSet is in java 1.5, but not in java 1.4. Guess I basically can't use that method with the version of Java I'm running, but would at least be nice if the JavaDoc pointed that out.
e.g. example code:
SqlRowSet rs = jt.queryForRowSet(sql.toString(), params, types);
It's also interesting that the JavaDoc for the method states that results will be mapped to an SqlRowSet object which is a wrapper class for javax.sql.RowSet. However, it also implies that it could possibly wrap javax.sql.rowset.CachedRowSet, which seems to be the case.


Reply With Quote