当前位置: 技术问答>java相关
连接池的问题
来源: 互联网 发布时间:2015-04-23
本文导语: 用weblogic建立连接池,数据库是mssql2000, 驱动weblogic.jdbc.mssqlserver4.Driver, 建立连接池如下: Name: MyPool URL: weblogic:jdbc:mssqlserver4:MyPool Driver: weblogic.jdbc.mssqlserver4.Driver Targets-Server: Myserver 错误如下:weblogic.man...
用weblogic建立连接池,数据库是mssql2000,
驱动weblogic.jdbc.mssqlserver4.Driver,
建立连接池如下:
Name: MyPool
URL: weblogic:jdbc:mssqlserver4:MyPool
Driver: weblogic.jdbc.mssqlserver4.Driver
Targets-Server: Myserver
错误如下:weblogic.management.DeploymentException: Error creating connection pool - with nested exception:
[java.lang.StringIndexOutOfBoundsException: String index out of range: -1]
驱动weblogic.jdbc.mssqlserver4.Driver,
建立连接池如下:
Name: MyPool
URL: weblogic:jdbc:mssqlserver4:MyPool
Driver: weblogic.jdbc.mssqlserver4.Driver
Targets-Server: Myserver
错误如下:weblogic.management.DeploymentException: Error creating connection pool - with nested exception:
[java.lang.StringIndexOutOfBoundsException: String index out of range: -1]
|
你配置不正确,参考下例:
URL:jdbc:weblogic:mssqlserver:mydb@100.100.100.14:8888
weblogic.jdbc.mssqlserver.Driver
URL:jdbc:weblogic:mssqlserver:mydb@100.100.100.14:8888
weblogic.jdbc.mssqlserver.Driver