java.lang.NoClassDefFoundError: javax/sql/rowset/CachedRowSet

Spring JIRA | Cary Mader | 1 decade ago
  1. 0

    When executing JdbcTemplate queryForRowSet method, a NoClassDefFoundError excpetion is thrown for javax.sql.rowset.CachedRowSet, which is part of Java 1.5. The javadoc for the method states that results will be mapped to an SqlRowSet 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. java.lang.NoClassDefFoundError: javax/sql/rowset/CachedRowSet at org.springframework.jdbc.core.JdbcTemplate.queryForRowSet(JdbcTemplate.java:365) at org.pirate.spring.jdbc.PirateDAO.getFlagsRecentlyUpdated(PirateDAO.java:282) at org.pirate.delegate.BusinessDelegate.getFlagsRecentlyUpdated(BusinessDelegate.java:137) at org.pirate.action.WelcomeAction.execute(WelcomeAction.java:72) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:670) at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:637) at org.apache.struts.taglib.logic.ForwardTag.doForward(ForwardTag.java:123) at org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:107) at org.apache.jsp.index_jsp._jspx_meth_logic_forward_0(index_jsp.java:85) at org.apache.jsp.index_jsp._jspService(index_jsp.java:59) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534)

    Spring JIRA | 1 decade ago | Cary Mader
    java.lang.NoClassDefFoundError: javax/sql/rowset/CachedRowSet
  2. 0

    When executing JdbcTemplate queryForRowSet method, a NoClassDefFoundError excpetion is thrown for javax.sql.rowset.CachedRowSet, which is part of Java 1.5. The javadoc for the method states that results will be mapped to an SqlRowSet 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. java.lang.NoClassDefFoundError: javax/sql/rowset/CachedRowSet at org.springframework.jdbc.core.JdbcTemplate.queryForRowSet(JdbcTemplate.java:365) at org.pirate.spring.jdbc.PirateDAO.getFlagsRecentlyUpdated(PirateDAO.java:282) at org.pirate.delegate.BusinessDelegate.getFlagsRecentlyUpdated(BusinessDelegate.java:137) at org.pirate.action.WelcomeAction.execute(WelcomeAction.java:72) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:670) at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:637) at org.apache.struts.taglib.logic.ForwardTag.doForward(ForwardTag.java:123) at org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:107) at org.apache.jsp.index_jsp._jspx_meth_logic_forward_0(index_jsp.java:85) at org.apache.jsp.index_jsp._jspService(index_jsp.java:59) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534)

    Spring JIRA | 1 decade ago | Cary Mader
    java.lang.NoClassDefFoundError: javax/sql/rowset/CachedRowSet
  3. 0

    Help! Program with one line. Rowset

    Google Groups | 1 decade ago | mille...@nospam.yahoo.com
    java.lang.NoClassDefFoundError: javax/sql/RowSet
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Help! Program witn an only line

    Google Groups | 1 decade ago | mille...@nospam.yahoo.com
    java.lang.NoClassDefFoundError: javax/sql/RowSet
  6. 0

    java.lang.NoClassDefFoundError: javax/sql/rowset/Joinable

    Oracle Community | 2 months ago | 3329749
    java.lang.NoClassDefFoundError: javax/sql/rowset/Joinable

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      javax/sql/rowset/CachedRowSet

      at org.springframework.jdbc.core.JdbcTemplate.queryForRowSet()
    2. Spring Framework
      JdbcTemplate.queryForRowSet
      1. org.springframework.jdbc.core.JdbcTemplate.queryForRowSet(JdbcTemplate.java:365)
      1 frame
    3. org.pirate.spring
      PirateDAO.getFlagsRecentlyUpdated
      1. org.pirate.spring.jdbc.PirateDAO.getFlagsRecentlyUpdated(PirateDAO.java:282)
      1 frame
    4. org.pirate.delegate
      BusinessDelegate.getFlagsRecentlyUpdated
      1. org.pirate.delegate.BusinessDelegate.getFlagsRecentlyUpdated(BusinessDelegate.java:137)
      1 frame
    5. org.pirate.action
      WelcomeAction.execute
      1. org.pirate.action.WelcomeAction.execute(WelcomeAction.java:72)
      1 frame
    6. struts
      ActionServlet.doGet
      1. org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
      2. org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
      3. org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
      4. org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
      4 frames
    7. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      2 frames
    8. Glassfish Core
      ApplicationDispatcher.forward
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
      4. org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
      5. org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
      6. org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
      6 frames
    9. GWT dev
      PageContextImpl.forward
      1. org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:670)
      2. org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:637)
      2 frames
    10. struts
      ForwardTag.doEndTag
      1. org.apache.struts.taglib.logic.ForwardTag.doForward(ForwardTag.java:123)
      2. org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:107)
      2 frames
    11. org.apache.jsp
      index_jsp._jspService
      1. org.apache.jsp.index_jsp._jspx_meth_logic_forward_0(index_jsp.java:85)
      2. org.apache.jsp.index_jsp._jspService(index_jsp.java:59)
      2 frames
    12. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
      1 frame
    13. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      1 frame
    14. GWT dev
      JspServlet.service
      1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
      2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
      3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
      3 frames
    15. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      1 frame
    16. Glassfish Core
      ContainerBase.invoke
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
      4. org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      5. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      6. org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
      7. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
      8. org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      9. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
      10. org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      11. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      12. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
      13. org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      14. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
      15. org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      16. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      17. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      18. org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      19. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      20. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
      20 frames
    17. org.apache.coyote
      CoyoteAdapter.service
      1. org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
      1 frame
    18. Grizzly HTTP
      TcpWorkerThread.runIt
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
      2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
      3. org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
      3 frames
    19. Tomcat Util
      ThreadPool$ControlRunnable.run
      1. org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
      1 frame
    20. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:534)
      1 frame