proxool连接池连接sql server2005数据库,控制台报:签名信息和同一包里面的另外一个类得签名信息不匹配
Caused by: java.lang.SecurityException: class "com.microsoft.sqlserver.jdbc.ISQLServerConnection$$FastClassByProxool$$3407f37e"'s signer information does not match signer information of other classes in the same package
原因是proxool的驱动包和sqljdbc4.jar的签名冲突,解决方法:
1. 将sqljdbc4.jar包的META-INF文件夹下的三个文件 MANIFEST.MF, MSFTSIG.RSA, MSFTSIG.SF 三个文件删除即可
2.使用jtds.jar驱动包,使用net.sourceforge.jtds.jdbc.Driver 驱动类并更换driver-url
转自http://blog.csdn.net/zws1987211/article/details/7449118
我使用第一种方案成功
<Resource name="jdbc/connectShmi"
auth="Container"
type="javax.sql.DataSource"
factory="org.logicalcobwebs.proxool.ProxoolDataSource"
proxool.alias="proxoolDB"
user="username"
password="password"
delegateProperties="foo=1,bar=true"
proxool.jndi-name="jndibottleconnectShmi"
proxool.driver-url="jdbc:sqlserver://192.168.1.7\SHMIName:1433;databaseName=DBName_Shmi;selectMethod=cursor;"
proxool.driver-class="com.microsoft.sqlserver.jdbc.SQLServerDriver"
proxool.house-keeping-sleep-time="900000"
proxool.maximum-active-time="5"
proxool.prototype-count="3"
proxool.statistics="1m,15m,1d"
proxool.simultaneous-build-throttle="10"
proxool.minimum-connection-count="20"
proxool.maximum-connection-count="570"
proxool.house-keeping-test-sql="select getdate()"
proxool.test-before-use="true" />
其中 select getdate() 在MSSQL Server 2005 2008中可用
分享到:
相关推荐
-- 连接池的别名 --> <alias>DBPool</alias> - <!-- proxool只能管理由自己产生的连接 --> <driver-url>jdbc:sqlserver://localhost:1433;dataBaseName=books</driver-url> - <!-- JDBC驱动程序 --> ...
proxool数据库连接池配置.doc
因为使用了proxool连接池.请确认你的Sql Server2000已安装了sp4补丁 本来想在后台增加个使用session bean+entity bean上传文件到数据库的功能,但由于时间关系.只写了一半 使用eclipse3.11+myeclipse4.0开发,可在...
因为使用了proxool连接池.请确认你的Sql Server2000已安装了sp4补丁 本来想在后台增加个使用session bean+entity bean上传文件到数据库的功能 使用eclipse3.11+myeclipse4.0开发,可在eclipse下直接导入工程
因为使用了proxool连接池.请确认你的Sql Server2000已安装了sp4补丁 本来想在后台增加个使用session bean+entity bean上传文件到数据库的功能,但由于时间关系.只写了一半 使用eclipse3.11+myeclipse4.0开发,可在...
因为使用了proxool连接池.请确认你的Sql Server2000已安装了sp4补丁 本来想在后台增加个使用session bean+entity bean上传文件到数据库的功能 使用eclipse3.11+myeclipse4.0开发,可在eclipse下直接导入工程
因为使用了proxool连接池.请确认你的Sql Server2000已安装了sp4补丁 本来想在后台增加个使用session bean+entity bean上传文件到数据库的功能,但由于时间关系.只写了一半 使用eclipse3.11+myeclipse4.0开发,可在...
因为使用了proxool连接池.请确认你的Sql Server2000已安装了sp4补丁 本来想在后台增加个使用session bean+entity bean上传文件到数据库的功能,但由于时间关系.只写了一半 使用eclipse3.11+myeclipse4.0开发,可在...
3.2.1. Web应用程序开发环境—SQLserver数据库 SQL Server是由Microsoft开发和推广的关系数据库管理系统(DBMS),它最初是由Microsoft、Sybase和Ashton-Tate三家公司共同开发的。SQL Server 2000是Microsoft公司于...
8.12 Proxool连接池 400 8.12.1 Proxool安装 400 8.12.2 Proxool使用 400 8.13 本章总结 402 第9章 BBS系统(Struts+MySQL实现) 403 教学视频:1小时46分 9.1 开发背景 404 9.2 需求分析 404 9.3 系统设计 404 ...
14-8 JNDI - 数据来源(Data Source) 与连接池(Connection Pool) 14-9 JSTL 的 SQL 标签库 14-10 Connection Pool - Proxool 第十五章 JSP Tag Library 15-1 JSP Tag Library 简介 15-2 一个简单的 Tag Library 范例...