Tomcat4.1.7+SQL Server 200数据库连接池的问题。
本人参考下文,配置了我的Tomcat的连接池
http://www.csdn.net/Develop/Read_Article.asp?Id=16912
但是在使用http://127.0.0.1:8080/myweb/servlet/JDBCPoolServ访问时,得到如下错误:
HTTP Status 405 - HTTP method GET is not supported by this URL
--------------------------------------------------------------------------------
type Status report
message HTTP method GET is not supported by this URL
description The specified HTTP method is not allowed for the requested resource (HTTP method GET is not supported by this URL).
--------------------------------------------------------------------------------
Apache Tomcat/4.1.7
我换了一种方法,用一个页面提交以后调用这个Servlet(提交时没有传递任何值),结果报错:
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
这又是怎么一回事??希望各位高手不吝赐教。谢谢。
我的操作系统是Windows 2000。已经将SQL Server 2000的JDBC驱动(大小2M)安装,并将其拷贝到Tomcat目录下的Common\lib里面了。