10 Replies Latest reply on Jan 27, 2015 12:22 PM by adzinets

    NoClassDefFoundError: com/sun/rowset/CachedRowSetImpl

    nsakiya

      Hi all,

       

      I'm evaluating this cool JBoss AS 7 and migrating my war from JBoss 4.0.2 to AS 7.  Datasource and security domain setting were set, and jboss-web.xml was modified.  The application got deployed fine so far.  I could login to the application, which confirmed that the security domain and datasource configuration are all working.  However, when the code tried to call Spring SimpleJdbcTemplate.query(), I got an exception below.

       

      I googled around and understood that CachedRowSetImpl is from rowset.jar, which was required for JDK1.4 or earlier.  But I'm running JDK 6 here, so I think this shouldn't be a problem.  And, I'm using ojdbc6.jar from Oracle.  Is there something I'm missing or some modules I need to include here?  Any suggestion would be really appreciated.

       

      Thanks!

       

      ... java.lang.NoClassDefFoundError: com/sun/rowset/CachedRowSetImpl

              at org.springframework.jdbc.core.SqlRowSetResultSetExtractor.newCachedRowSet(SqlRowSetResultSetExtractor.java:78) [spring-jdbc-3.0.5.RELEASE.jar:]

              at org.springframework.jdbc.core.SqlRowSetResultSetExtractor.createSqlRowSet(SqlRowSetResultSetExtractor.java:62) [spring-jdbc-3.0.5.RELEASE.jar:]

              at org.springframework.jdbc.core.SqlRowSetResultSetExtractor.extractData(SqlRowSetResultSetExtractor.java:46) [spring-jdbc-3.0.5.RELEASE.jar:]

              at org.springframework.jdbc.core.SqlRowSetResultSetExtractor.extractData(SqlRowSetResultSetExtractor.java:1) [spring-jdbc-3.0.5.RELEASE.jar:]

              at org.springframework.jdbc.core.JdbcTemplate$1QueryStatementCallback.doInStatement(JdbcTemplate.java:445) [spring-jdbc-3.0.5.RELEASE.jar:]

              at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:395) [spring-jdbc-3.0.5.RELEASE.jar:]

              at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:455) [spring-jdbc-3.0.5.RELEASE.jar:]

              at org.springframework.jdbc.core.JdbcTemplate.queryForRowSet(JdbcTemplate.java:498) [spring-jdbc-3.0.5.RELEASE.jar:]

      ...

      ...

      ...