主题:[讨论]请教各位有人看的懂这个错误吗?
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: 3 in the jsp file: /TMPbl0xpwrvxz.jsp
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\Compile\org\apache\jsp\TMPbl0xpwrvxz_jsp.java:54: cannot resolve symbol
symbol : class Driver
location: class org.apache.jsp.TMPbl0xpwrvxz_jsp
Driver MM_driverUser = (Driver)Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
^
An error occurred at line: 3 in the jsp file: /TMPbl0xpwrvxz.jsp
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\Compile\org\apache\jsp\TMPbl0xpwrvxz_jsp.java:54: cannot resolve symbol
symbol : class Driver
location: class org.apache.jsp.TMPbl0xpwrvxz_jsp
Driver MM_driverUser = (Driver)Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
^
An error occurred at line: 3 in the jsp file: /TMPbl0xpwrvxz.jsp
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\Compile\org\apache\jsp\TMPbl0xpwrvxz_jsp.java:55: cannot resolve symbol
symbol : class Connection
location: class org.apache.jsp.TMPbl0xpwrvxz_jsp
An error occurred at line: 3 in the jsp file: /TMPbl0xpwrvxz.jsp
Generated servlet error:
Connection MM_connUser = DriverManager.getConnection("jdbc:odbc:Compile","","");
^
An error occurred at line: 3 in the jsp file: /TMPbl0xpwrvxz.jsp
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\Compile\org\apache\jsp\TMPbl0xpwrvxz_jsp.java:55: cannot resolve symbol
symbol : variable DriverManager
location: class org.apache.jsp.TMPbl0xpwrvxz_jsp
An error occurred at line: 3 in the jsp file: /TMPbl0xpwrvxz.jsp
Generated servlet error:
Connection MM_connUser = DriverManager.getConnection("jdbc:odbc:Compile","","");
^
An error occurred at line: 3 in the jsp file: /TMPbl0xpwrvxz.jsp
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\Compile\org\apache\jsp\TMPbl0xpwrvxz_jsp.java:59: cannot resolve symbol
symbol : class PreparedStatement
location: class org.apache.jsp.TMPbl0xpwrvxz_jsp
PreparedStatement MM_statementUser = MM_connUser.prepareStatement(MM_pSQL);
^
An error occurred at line: 3 in the jsp file: /TMPbl0xpwrvxz.jsp
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\Compile\org\apache\jsp\TMPbl0xpwrvxz_jsp.java:60: cannot resolve symbol
symbol : class ResultSet
location: class org.apache.jsp.TMPbl0xpwrvxz_jsp
ResultSet MM_rsUser = MM_statementUser.executeQuery();
^
An error occurred at line: 3 in the jsp file: /TMPbl0xpwrvxz.jsp
Generated servlet error:
Note: C:\Tomcat 5.0\work\Catalina\localhost\Compile\org\apache\jsp\TMPbl0xpwrvxz_jsp.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
6 errors
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
--------------------------------------------------------------------------------
Apache Tomcat/5.0.28
注:我用的是UltraDev 4.01,在登录的表单里新创了一人Log In User服务器行为就无法预览.还请大家帮忙想想这是为什么?
--------------------------------------------------------------------------------
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: 3 in the jsp file: /TMPbl0xpwrvxz.jsp
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\Compile\org\apache\jsp\TMPbl0xpwrvxz_jsp.java:54: cannot resolve symbol
symbol : class Driver
location: class org.apache.jsp.TMPbl0xpwrvxz_jsp
Driver MM_driverUser = (Driver)Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
^
An error occurred at line: 3 in the jsp file: /TMPbl0xpwrvxz.jsp
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\Compile\org\apache\jsp\TMPbl0xpwrvxz_jsp.java:54: cannot resolve symbol
symbol : class Driver
location: class org.apache.jsp.TMPbl0xpwrvxz_jsp
Driver MM_driverUser = (Driver)Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
^
An error occurred at line: 3 in the jsp file: /TMPbl0xpwrvxz.jsp
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\Compile\org\apache\jsp\TMPbl0xpwrvxz_jsp.java:55: cannot resolve symbol
symbol : class Connection
location: class org.apache.jsp.TMPbl0xpwrvxz_jsp
An error occurred at line: 3 in the jsp file: /TMPbl0xpwrvxz.jsp
Generated servlet error:
Connection MM_connUser = DriverManager.getConnection("jdbc:odbc:Compile","","");
^
An error occurred at line: 3 in the jsp file: /TMPbl0xpwrvxz.jsp
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\Compile\org\apache\jsp\TMPbl0xpwrvxz_jsp.java:55: cannot resolve symbol
symbol : variable DriverManager
location: class org.apache.jsp.TMPbl0xpwrvxz_jsp
An error occurred at line: 3 in the jsp file: /TMPbl0xpwrvxz.jsp
Generated servlet error:
Connection MM_connUser = DriverManager.getConnection("jdbc:odbc:Compile","","");
^
An error occurred at line: 3 in the jsp file: /TMPbl0xpwrvxz.jsp
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\Compile\org\apache\jsp\TMPbl0xpwrvxz_jsp.java:59: cannot resolve symbol
symbol : class PreparedStatement
location: class org.apache.jsp.TMPbl0xpwrvxz_jsp
PreparedStatement MM_statementUser = MM_connUser.prepareStatement(MM_pSQL);
^
An error occurred at line: 3 in the jsp file: /TMPbl0xpwrvxz.jsp
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\Compile\org\apache\jsp\TMPbl0xpwrvxz_jsp.java:60: cannot resolve symbol
symbol : class ResultSet
location: class org.apache.jsp.TMPbl0xpwrvxz_jsp
ResultSet MM_rsUser = MM_statementUser.executeQuery();
^
An error occurred at line: 3 in the jsp file: /TMPbl0xpwrvxz.jsp
Generated servlet error:
Note: C:\Tomcat 5.0\work\Catalina\localhost\Compile\org\apache\jsp\TMPbl0xpwrvxz_jsp.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
6 errors
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
--------------------------------------------------------------------------------
Apache Tomcat/5.0.28
注:我用的是UltraDev 4.01,在登录的表单里新创了一人Log In User服务器行为就无法预览.还请大家帮忙想想这是为什么?