tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Egyhazy <mw...@virginia.edu>
Subject Re: Exception report:Errors
Date Thu, 21 Feb 2002 16:31:54 GMT
hello, you need to import the sql classes you are using.  this is a user error, there is no
problem with tomcat.

matt



fusterjj wrote:

> org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main
has been deprecated.
>
> An error occured between lines: 18 and 68 in the jsp file: /JspMySQL.jsp
>
> Generated servlet error:
> D:\Apache Tomcat 4.0\work\localhost\_\JspMySQL$jsp.java:75: Class org.apache.jsp.Connection
not found.
>                         Connection dbconn;
>                         ^
>
> An error occured between lines: 18 and 68 in the jsp file: /JspMySQL.jsp
>
> Generated servlet error:
> D:\Apache Tomcat 4.0\work\localhost\_\JspMySQL$jsp.java:76: Class org.apache.jsp.ResultSet
not found.
>                         ResultSet results;
>                         ^
>
> An error occured between lines: 18 and 68 in the jsp file: /JspMySQL.jsp
>
> Generated servlet error:
> D:\Apache Tomcat 4.0\work\localhost\_\JspMySQL$jsp.java:77: Class org.apache.jsp.PreparedStatement
not found.
>                         PreparedStatement sql;
>                         ^
>
> An error occured between lines: 18 and 68 in the jsp file: /JspMySQL.jsp
>
> Generated servlet error:
> D:\Apache Tomcat 4.0\work\localhost\_\JspMySQL$jsp.java:85: Undefined variable or class
name: DriverManager
>                                         dbconn = DriverManager.getConnection("jdbc:mysql://localhost:3306/prueba?user=fusterjj&password=juanjo");
>                                                  ^
>
> An error occured between lines: 18 and 68 in the jsp file: /JspMySQL.jsp
>
> Generated servlet error:
> D:\Apache Tomcat 4.0\work\localhost\_\JspMySQL$jsp.java:114: Class org.apache.jsp.SQLException
not found.
>                                 catch (SQLException s)
>                                        ^
> 5 errors, 1 warning
>
>         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
>         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
>         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
>         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
>         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
>         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
>         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
>         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
>         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
>         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
>         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
>         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
>         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
>         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
>         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
>         at java.lang.Thread.run(Thread.java:536)


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message