免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1883 | 回复: 3
打印 上一主题 下一主题

windows下 jsp 连 sql server数据库 出现的问题. [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-03-05 17:20 |只看该作者 |倒序浏览
javax.servlet.ServletException: com.microsoft.jdbc.sqlserver.SQLServerDriver
        org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:84
        org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
        org.apache.jsp.db_jsp._jspService(org.apache.jsp.db_jsp:97)
        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:322)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
        org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1332)
        org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
        org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:150)
        org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:71)
        java.lang.ClassLoader.loadClassInternal(Unknown Source)
        java.lang.Class.forName0(Native Method)
        java.lang.Class.forName(Unknown Source)
        org.apache.jsp.db_jsp._jspService(org.apache.jsp.db_jsp:50)
        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:322)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


请问这是怎么回事? 如何解决?

论坛徽章:
0
2 [报告]
发表于 2006-03-05 17:22 |只看该作者
重起了一下tomcat 发现报错变了

javax.servlet.ServletException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
        org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:84
        org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
        org.apache.jsp.db_jsp._jspService(org.apache.jsp.db_jsp:97)
        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:322)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
        com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
        com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
        com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
        com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
        com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
        com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
        com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
        com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
        java.sql.DriverManager.getConnection(Unknown Source)
        java.sql.DriverManager.getConnection(Unknown Source)
        org.apache.jsp.db_jsp._jspService(org.apache.jsp.db_jsp:55)
        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:322)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

javax.servlet.ServletException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
        org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:84
        org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
        org.apache.jsp.db_jsp._jspService(org.apache.jsp.db_jsp:97)
        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:322)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
        com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
        com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
        com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
        com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
        com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
        com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
        com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
        com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
        java.sql.DriverManager.getConnection(Unknown Source)
        java.sql.DriverManager.getConnection(Unknown Source)
        org.apache.jsp.db_jsp._jspService(org.apache.jsp.db_jsp:55)
        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:322)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

论坛徽章:
0
3 [报告]
发表于 2006-03-05 21:38 |只看该作者
Maybe your jdbc dirver is old,please enter www.microsoft.com site to upgrate your jdbc driver.

good luck for you!

论坛徽章:
0
4 [报告]
发表于 2006-03-06 22:36 |只看该作者
安装SQL Server SP3,把JDBC驱动重新装一遍试试,应该没问题了!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP