windows2003+tomcat+mydql出错问题

初学tomcat用jsp连接mysql,结果显示如下错误.哪位高手请指点下是什么原因.HTTPStatus500-----------------------------... 初学tomcat用jsp连接 mysql,结果显示如下错误.哪位高手请指点下是什么原因.

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: /testmysql.jsp(1,23) quote symbol expected
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:86)
org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:198)
org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:143)
org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:156)
org.apache.jasper.compiler.ParserController.getPageEncodingForJspSyntax(ParserController.java:443)
org.apache.jasper.compiler.ParserController.determineSyntaxAndEncoding(ParserController.java:377)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:169)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.4 logs.

--------------------------------------------------------------------------------
对了,我要运行的jsp文件是:

<%@ page contentType=text/html;charset=GB2312 %>
<%@ page language=java import=java.sql.*%>
<%
java.sql.Connection conn;
java.lang.String strConn;
Class.forName(org.gjt.mm.mysql.Driver).newInstance();
conn= java.sql.DriverManager.getConnection(jdbc:mysql://localhost/mysql,root,);
statement stmt=conn.createStatement();
ResultSet rs=null;
rs=stmt.executeQuery(select * from use);
%>

网上介绍和myssql能正常连接的例子.
--------------------
展开
 我来答
队长本人
2006-08-07 · TA获得超过1111个赞
知道小有建树答主
回答量:492
采纳率:0%
帮助的人:0
展开全部
cannot access java.lang.Object
bad class file: C:\Program Files\Java\jre1.5.0_04\lib\rt.jar(java/lang/Object.class)

public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase

Unable to compile class for JSP
你辩配保存的文件名应该闷丛是和类里的类名不同携罩指
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式