Board logo

标题: 弱弱地问...jsp连接sql server2000问题。。。谢谢 [打印本页]

作者: cicely    时间: 2006-6-4 17:14     标题: 弱弱地问...jsp连接sql server2000问题。。。谢谢

用jsp连接sql server,连接不上数据库死活。。。报错如下:望高手帮忙看下原因,和解决方法,谢谢~!!
HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: [Microsoft][ODBC ???????] ???????????????????
        org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
        org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
        org.apache.jsp.book.buy_jsp._jspService(buy_jsp.java:112)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:810)


root cause

java.sql.SQLException: [Microsoft][ODBC ???????] ???????????????????
        sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
        sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
        sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3074)
        sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:323)
        sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)
        java.sql.DriverManager.getConnection(DriverManager.java:525)
        java.sql.DriverManager.getConnection(DriverManager.java:193)
        org.apache.jsp.book.buy_jsp._jspService(buy_jsp.java:57)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:810)


note The full stack trace of the root cause is available in the Apache Tomcat/5.0.25 logs.
作者: Nothing    时间: 2006-6-4 20:28

是不是SQL Server驱动呀。
作者: winsurfro    时间: 2006-6-11 10:49

怎么改呢?




欢迎光临 编程开发论坛 (http://bbs.lihuasoft.net/) Powered by Discuz! 6.0.0