| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 17542 人关注过本帖
标题:[分享]jsp连接数据库大全
只看楼主 加入收藏
暴暴蛇
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2006-3-16
收藏
得分:0 
为什么我连SQL2000不行啊,出现这些

type Exception report

message

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

exception

org.apache.jasper.JasperException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
	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]Error establishing socket.
	org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)
	org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
	org.apache.jsp.testsqlserver_jsp._jspService(testsqlserver_jsp.java:79)
	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]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.testsqlserver_jsp._jspService(testsqlserver_jsp.java:51)
	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.16 logs.

2006-04-01 01:40
james_sam
Rank: 1
等 级:新手上路
帖 子:18
专家分:0
注 册:2006-3-12
收藏
得分:0 

强项!!


2006-04-02 20:26
chengmz
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2006-4-6
收藏
得分:0 

顶呱呱

2006-04-09 21:20
小小
Rank: 1
等 级:新手上路
威 望:1
帖 子:219
专家分:0
注 册:2004-5-31
收藏
得分:0 

连接ACCESS能不能 和ASP一样 直接连接数据库文件啊?
不要配置ODBC。那样好麻烦的


有一天咖啡的舞者 £
2006-04-10 20:53
ch_zh_80
Rank: 1
等 级:新手上路
帖 子:29
专家分:0
注 册:2006-3-9
收藏
得分:0 
请问楼主,有没有连接iHistorian数据库的实例呀

jsp可以连接iHistorian吗?
2006-04-18 12:37
ch_zh_80
Rank: 1
等 级:新手上路
帖 子:29
专家分:0
注 册:2006-3-9
收藏
得分:0 
请问楼主,有没有连接iHistorian数据库的实例呀

jsp可以连接iHistorian吗?
2006-04-19 08:31
wxmm2003
Rank: 1
等 级:新手上路
帖 子:9
专家分:0
注 册:2006-4-14
收藏
得分:0 
jsp连接Sql Server7.0/2000数据库 是不是还要配置什么啊
2006-04-21 20:46
Sos_sun
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2006-4-24
收藏
得分:0 

你的错误是服务器异常,是Tomcat的原因。


喜欢,一个人..........
2006-04-24 22:34
Sos_sun
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2006-4-24
收藏
得分:0 
以下是引用sharprick在2005-12-29 14:09:00的发言:
我用JSP连接SQL Server 2000 会出现如下问题:

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][SQLServer 2000 Driver for JDBC]Error establishing socket.
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.testsqlserver_jsp._jspService(testsqlserver_jsp.java:86)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
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: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(DriverManager.java:512)
java.sql.DriverManager.getConnection(DriverManager.java:171)
org.apache.jsp.testsqlserver_jsp._jspService(testsqlserver_jsp.java:52)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
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:802)

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


Apache Tomcat/5.0




你的事故服务器异常,是Tomcat的原因

喜欢,一个人..........
2006-04-24 22:37
Sos_sun
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2006-4-24
收藏
得分:0 
以下是引用wxmm2003在2006-4-21 20:46:00的发言:
jsp连接Sql Server7.0/2000数据库 是不是还要配置什么啊

要SQL的驱动(数据库的驱动)


喜欢,一个人..........
2006-04-24 22:38
快速回复:[分享]jsp连接数据库大全
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.018377 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved