HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 7 in the jsp file: /questionnaire/classes/mysql.jsp
Connection cannot be resolved to a type
4: String mysql_PASSWORD = "@Room1";
5: String mysql_STRING = "jdbc:mysql://10.10.100.200:3306/hreo_main_db";
6:
7: Connection connection = null;
8:
9: Class.forName("com.mysql.jdbc.Driver").newInstance();
10: connection = DriverManager.getConnection(mysql_STRING,mysql_USERNAME,mysql_PASSWORD);
An error occurred at line: 10 in the jsp file: /questionnaire/classes/mysql.jsp
DriverManager cannot be resolved
7: Connection connection = null;
8:
9: Class.forName("com.mysql.jdbc.Driver").newInstance();
10: connection = DriverManager.getConnection(mysql_STRING,mysql_USERNAME,mysql_PASSWORD);
11:
12: if(!connection.isClosed())
13: out.println("Successfully connected to " + "MySQL server using TCP/IP...");
An error occurred at line: 73 in the generated java file
Syntax error on token "catch", Identifier expected
An error occurred at line: 75 in the generated java file
out cannot be resolved
An error occurred at line: 75 in the generated java file
_jspx_out cannot be resolved
An error occurred at line: 76 in the generated java file
out cannot be resolved
An error occurred at line: 76 in the generated java file
out cannot be resolved
An error occurred at line: 77 in the generated java file
out cannot be resolved
An error occurred at line: 78 in the generated java file
_jspx_page_context cannot be resolved
An error occurred at line: 78 in the generated java file
_jspx_page_context cannot be resolved
An error occurred at line: 80 in the generated java file
Syntax error on token "finally", { expected
An error occurred at line: 81 in the generated java file
_jspx_page_context cannot be resolved
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:317)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.
Apache Tomcat/6.0.18