新手求助:测试连接MYSQL时提示如下,请教问题出在哪?如何解决?

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: 5 in the jsp file: /testmysql.jsp

Generated servlet error:
    [javac] Compiling 1 source file

D:/Program Files/Tomcat 5.0/work/Catalina/localhost/_/org/apache/jsp/testmysql_jsp.java:48: ';' expected



An error occurred at line: 5 in the jsp file: /testmysql.jsp

Generated servlet error:
String url ="jdbc:mysql://localhost:8080/news/jspcndb?user=root&password=123456&useUnicode=true&characterEncoding=8859_1" 
                                                                                                                         ^
1 error


	org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
	org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)
	org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

 

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

 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值