幸
幸福鸟
Unregistered / Unconfirmed
GUEST, unregistred user!
我把POOLMAN目录放到D盘,把poolman.jar和poolman.props、jdbc2_0-stdext.jar都放到classpath中,在poolman.props中加入如下代码:
##mssqlserver distribution
db_name.5=mssqlserver
db_driver.5=com.inet.tds.TdsDriver
db_url.5=jdbc:inetdae:127.0.0.1:1433?database=JSP&charset=GB2312&sql7=true
db_username.5=sa
db_password.5=
initialConnections.5=3
enableCache.5=true
cacheSize.5=5
cacheRefresh.5=10000
connection_timeout.5=15000
checkfrequency.5=30000
usertimeout.5=10000
maximumsize.5=20
其中db_url.5=jdbc:inetdae:127.0.0.1:1433?database=JSP&charset=GB2312&sql7=true 的JSP是我的数据库名,不知道我这样配置对吗,但我执行
java com.codestudio.sql.PoolMan "mssqlserver"时出现错误:
Attemption to connect to mssqlserver... could not find 'poolman.props' --now attemptiong to read deprecated file name 'pool.props'...failed.
FAILED.
Test Failed with the following error:
java.sql.SQLExcetpion:
ERROR:Unable to find and read a valid PoolMan properties file.Please ensure that
'poolman.props' is in a directory that is in your CLASSPATH.
at com.codestudio.sql.PoolMan.connect(PoolMan.java:140)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:193)
at com.codestudio.sql.PoolMan.main(PoolMan.java:56)
Exception in thread "main" java.lang.NullPointerException at com.codestudio.sql.PoolMan.main(PoolMan.java:63)
到底错哪了,poolman.props已经加到classpath中了,还要配置其他的吗,急死了,帮帮忙了啊??????
##mssqlserver distribution
db_name.5=mssqlserver
db_driver.5=com.inet.tds.TdsDriver
db_url.5=jdbc:inetdae:127.0.0.1:1433?database=JSP&charset=GB2312&sql7=true
db_username.5=sa
db_password.5=
initialConnections.5=3
enableCache.5=true
cacheSize.5=5
cacheRefresh.5=10000
connection_timeout.5=15000
checkfrequency.5=30000
usertimeout.5=10000
maximumsize.5=20
其中db_url.5=jdbc:inetdae:127.0.0.1:1433?database=JSP&charset=GB2312&sql7=true 的JSP是我的数据库名,不知道我这样配置对吗,但我执行
java com.codestudio.sql.PoolMan "mssqlserver"时出现错误:
Attemption to connect to mssqlserver... could not find 'poolman.props' --now attemptiong to read deprecated file name 'pool.props'...failed.
FAILED.
Test Failed with the following error:
java.sql.SQLExcetpion:
ERROR:Unable to find and read a valid PoolMan properties file.Please ensure that
'poolman.props' is in a directory that is in your CLASSPATH.
at com.codestudio.sql.PoolMan.connect(PoolMan.java:140)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:193)
at com.codestudio.sql.PoolMan.main(PoolMan.java:56)
Exception in thread "main" java.lang.NullPointerException at com.codestudio.sql.PoolMan.main(PoolMan.java:63)
到底错哪了,poolman.props已经加到classpath中了,还要配置其他的吗,急死了,帮帮忙了啊??????