• Post Reply Bookmark Topic Watch Topic
  • New Topic

Question about CachedRowSetImpl  RSS feed

 
Ra'fat Musameh
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
1. im trying to use the CachedRowSet to retrieve data from DB
but when the first request occur the following error and warrning occurred:
this is my code:
---------------------------------------
<%@ page errorPage="./error/ErrorPage.jsp"%>
<%@ page import="java.util.*"%>
<%@ page import="com.sun.rowset.*"%>
<jsp:useBean id="crs1" scope="session" class="com.sun.rowset.CachedRowSetImpl"/>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Test</title>
</head>
hiiiiiiiiiii
</head>
</body>
</html>
---------------------------------------
the error is:
------------------------------------------------------------------
org.apache.jasper.JasperException: Unable to compile class for JSPD:\Program Files\Apache Tomcat 4.0\common\lib\jdbc2_0-stdext.jar(javax/sql/RowSet.java): Public interface javax.sql.RowSet must be defined in a file called "RowSet.java".
D:\Program Files\Apache Tomcat 4.0\common\lib\jdbc2_0-stdext.jar(javax/sql/RowSetInternal.java): Public interface javax.sql.RowSetInternal must be defined in a file called "RowSetInternal.java".
2 errors
--------------------------------------------------------------------------


the second thing after second request the things going fine but when i change on the jsp page by adding any thing like text... etc.. the error re occurred after that i refresh the page and things going fine again but the changes did not appear on the page.. to make the changes appear i must delete the work files and restart the server. which is Apache Tomcat 4.0


Thanx in advance..

[ November 30, 2005: Message edited by: Ra'fat Musameh ]

[ November 30, 2005: Message edited by: Ra'fat Musameh ]

[ November 30, 2005: Message edited by: Ra'fat Musameh ]

[ November 30, 2005: Message edited by: Bear Bibeault ]

[ December 01, 2005: Message edited by: Ra'fat Musameh ]
[ December 02, 2005: Message edited by: Bear Bibeault ]
 
Mohd. Yakub
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Raf'at,

Change ur tomcat version 5.x.x and put bean scope as request and
it problem with the browser but change should be reflected...
use pageContext to access the content in crs1 to present it somewhere
in the page.
cheers,
yakub
 
Ra'fat Musameh
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi man,
i tried but i get the same error...!!!

Thanx.
 
jiju ka
Ranch Hand
Posts: 308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Unable to compile class for JSPD:\Program Files\Apache Tomcat 4.0\common\lib\jdbc2_0-stdext.jar(javax/sql/RowSet.java): Public interface javax.sql.RowSet must be defined in a file called "RowSet.java".

This could be a configuration issue. Check your classpath to see javax.sql.RowSet is included with the jars in classpath.

If included then check whether you can reference com.sun.rowset.CachedRowSetImpl from your java code (not jsp) without compilation error
[ December 06, 2005: Message edited by: jiju ka ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!