Please let me know how to fix this.

description The server encountered an internal error () that prevented it from fulfilling this request.


exception


org.apache.jasper.JasperException: Unable to load class for JSP
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:599)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:141)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)



root cause


java.lang.ClassNotFoundException: org.apache.jsp.one1_jsp
java.net.URLClassLoader$1.run(Unknown Source)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(Unknown Source)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:597)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:141)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


====================MYCODE


</body>
</html>


<%@ page import= "java.io.*" %>
<%@ page import= "java.lang.*" %>
<%@ page import= "java.sql.statement*" %>



<p ALIGN=Center>
<center>
<h1>DAILY SYSTEM MONITORING</h1>
</center>
<%
try {
// load the JDBC driver
String drivers = "sun.jdbc.odbc.JdbcOdbcDriver";
Class.forName(drivers);


String database = "jdbc:odbc:databaseName";


// Get a database connection
con = DriverManager.getConnection(database);


// Get a Statement object
stmt = con.createStatement();


// Display List of books that match the user's input
rs = stmt.executeQuery("SELECT columnName FROM tableName");


%>
<p>PRODUCT
<select NAME="Product">
<option VALUE="SPDM">  SPDM
<option VALUE="CPCEX"> CPCEX
<option VALUE="KMS">   KMS
<option VALUE="KMS">   SIMS
</select>
</p>



<p>FromDate
<select NAME="DATE">
<option VALUE="SPDM">  SPDM
</select>
</p>
<p>ToDate
<select NAME="DATE">
<option VALUE="SPDM">  SPDM
</select>
</p>


<table border="1">
<tr>
<th>Product</th>
<th>Scenario</th>
<th>Response Time</th>
<th>CPU_SYSTEM</th>
<th>MEM_SYSTEM</th>
<th>CPU_JVM</th>
<th>MEM_JVM</th>
<th>COncurrent</th>
</tr>
<%
while (rs.next()) {
%>


<tr>
<td><%= rs.fields(0) %></td>
<td><%= rs.fields(1) %></td>
<td><%= rs.fields(2) %></td>
<td><%= rs.fields(3) %></td>
<td><%= rs.fields(4) %></td>
<td><%= rs.fields(5) %></td>
<td><%= rs.fields(6) %></td>
<td><%= rs.fields(7) %></td>
</tr>
<% } %>
<&
stmt.close();
con.close();
rs.close();
%>
</table>


<p>
<input TYPE="submit" NAME="Request" VALUE="Submit">
<input TYPE="reset" NAME="Clear" VALUE="Cancel">
</p>

Edited 3 Years Ago by happygeek: fixed formatting

how often do we have to tell you kids to NEVER do that, NEVER put Java code in a JSP.

And oh, the error is quite clear. It can't find a JSP.

This happens when you are disconnected from internet.
May be need internet for XML parser?!..

This article has been dead for over six months. Start a new discussion instead.