JSP+tomcat+SQL Server2000配置不好
HTTPStatus500-typeExceptionreportmessagedescriptionTheserverencounteredaninternalerro...
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: An exception occurred processing JSP page /index.jsp at line 16
13:
14: String password="123";
15:
16: Connection conn= DriverManager.getConnection(url,user,password);
17:
18: Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
19:
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
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)
跑了一个测试程序就报这个错误,请各位帮忙看看哪里有问题
怎么设置,请说的详细一些,谢谢 展开
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 16
13:
14: String password="123";
15:
16: Connection conn= DriverManager.getConnection(url,user,password);
17:
18: Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
19:
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
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)
跑了一个测试程序就报这个错误,请各位帮忙看看哪里有问题
怎么设置,请说的详细一些,谢谢 展开
3个回答
展开全部
更改连接方式为 远程和本地
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
检查下写的程序有没有什么语法错误,或本身就有错------------------------------------------
你试试这种写法
Statement stmt=conn.createStatement();
你试试这种写法
Statement stmt=conn.createStatement();
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询