Hi,
I am working on allaire's jrun3.0 and MicrosoftSDK for Java 4.0 as jre.
when i run the simple jsp applications it's working fine but if i try to
run any jdbc application it is throwing
java.lang.IllegalAccesError
the code is simple and is as follows,...
<%@ page import="java.sql.*" %>
<html>
<body>
<%
Class.forName("com.ms.jdbc.odbc.JdbcOdbcDriver");
Connection
con=DriverManager.getConnection("jdbc:odbc:mydsn","username","password");
Statement st=con.createStatement(); /* error is throwing here*/
ResultSet rs=st.executeQuery("select * from mytable");
while(rs.next() )
{
out.print(rs.getString(1));
}
%>
</body>
</html>
file name is jdbctest.jsp
javax.servlet.ServletException: Exception thrown on line '11' from page
'C:\\Program
Files\\Allaire\\JRun\\servers\\default\\demo-app\\jsp\\jdbctest.jsp'.
java.lang.IllegalAccessError
at jrun__jsp__jdbctest2ejsp11._jspService
(jrun__jsp__jdbctest2ejsp11.java:43)
at allaire/jrun/jsp/HttpJSPServlet.service (HttpJSPServlet.java:37)
at allaire/jrun/servlet/JRunSE.service (JRunSE.java:1012)
at allaire/jrun/servlet/JRunSE.runServlet (JRunSE.java:928)
at allaire/jrun/servlet/JRunNamedDispatcher.forward
(JRunNamedDispatcher.java:26)
at allaire/jrun/jsp/JSPServlet.service (JSPServlet.java:153)
at allaire/jrun/servlet/JRunSE.service (JRunSE.java:1012)
at allaire/jrun/servlet/JRunSE.runServlet (JRunSE.java:928)
at allaire/jrun/servlet/JRunRequestDispatcher.forward
(JRunRequestDispatcher.java:87)
at allaire/jrun/servlet/JRunSE.service (JRunSE.java:1131)
at allaire/jrun/servlet/JvmContext.dispatch (JvmContext.java:329)
at allaire/jrun/http/WebEndpoint.run (WebEndpoint.java:108)
at allaire/jrun/ThreadPool.run (ThreadPool.java:270)
at allaire/jrun/WorkerThread.run (WorkerThread.java:76)
Pls can some one throw light regarding the above problem...
thanks in advance,
Sanjeev.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists