Java开发网 |
注册 |
登录 |
帮助 |
搜索 |
排行榜 |
发帖统计
|
您没有登录 |
» Java开发网 » Database/JDBC/SQL/JDO/Hibernate
打印话题 寄给朋友 订阅主题 |
作者 | Re:请求高手解决一个JDBC连接的问题。 [Re:jin3shan] |
jin3shan
发贴: 33 积分: 0 |
于 2006-05-22 09:32
没设置web-in/xml.错误信息又成了这样. 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: Exception in JSP: /testMssql.jsp:26 23: <% 24: 25: Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance(); 26: Connection con=java.sql.DriverManager.getConnection("jdbc:microsoft:sqlserver:127.0.0.1:1433;DatabaseName=jspdev","sa","sa"); 27: Statement stmt=con.createStatement(); 28: ResultSet rst=stmt.executeQuery("select * from book;"); 29: while(rst.next()) Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause javax.servlet.ServletException: [Microsoft][SQLServer 2000 Driver for JDBC]Unable to connect. Invalid URL. org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) org.apache.jsp.testMssql_jsp._jspService(testMssql_jsp.java:99) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Unable to connect. Invalid URL. com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source) com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source) java.sql.DriverManager.getConnection(DriverManager.java:525) java.sql.DriverManager.getConnection(DriverManager.java:171) org.apache.jsp.testMssql_jsp._jspService(testMssql_jsp.java:71) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) 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.17 logs. 请问下是怎么回事呢?又该怎么解决呢. 为什么这个Applet不能在浏览器显示啊? |
话题树型展开 |
人气 | 标题 | 作者 | 字数 | 发贴时间 |
20385 | 请求高手解决一个JDBC连接的问题。 | jin3shan | 3565 | 2006-05-19 14:27 |
17620 | Re:请求高手解决一个JDBC连接的问题。 | why | 190 | 2006-05-20 11:07 |
17881 | Re:请求高手解决一个JDBC连接的问题。 | jin3shan | 2024 | 2006-05-20 12:47 |
17562 | Re:请求高手解决一个JDBC连接的问题。 | why | 915 | 2006-05-21 22:03 |
17792 | Re:请求高手解决一个JDBC连接的问题。 | jin3shan | 3184 | 2006-05-20 13:15 |
17656 | Re:请求高手解决一个JDBC连接的问题。 | jin3shan | 20 | 2006-05-22 08:44 |
17532 | Re:请求高手解决一个JDBC连接的问题。 | why | 303 | 2006-05-22 12:41 |
17899 | Re:请求高手解决一个JDBC连接的问题。 | jin3shan | 2978 | 2006-05-22 09:32 |
19618 | Re:请求高手解决一个JDBC连接的问题。 | CRYSPARK | 30 | 2006-06-22 11:55 |
已读帖子 新的帖子 被删除的帖子 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |