RE: Websphere compatibility
- From: Wes Clark <WesClark@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 27 Mar 2008 14:39:00 -0700
I'm having a devil of a time getting the most currt MS JDBC driver configured
in a working WebSphere data source. The JDBC URL that normally connects is
jdbc:sqlserver://localhost:2005;databaseName=abtest;user=sa;password=***
I am runngin SQL Server 2005 as a named instance with a static port, 2005.
No matter what I try, I get
[3/27/08 14:14:06:813 PDT] 00000021 DataSourceCon E DSRA8040I: Failed to
connect to the DataSource. Encountered "": java.sql.SQLException: The TCP/IP
connection to the host has failed. java.net.ConnectException: Connection
refused: connectDSRA0010E: SQL State = 08S01, Error Code = 0
It worries me a bit that this page,
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/topic/com.ibm.websphere.base.doc/info/aes/ae/rdat_minreq.html,
doesn't show the MS driver. It finally does get mentioned on
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/topic/com.ibm.websphere.base.doc/info/aes/ae/rdat_minreqmssql.html, but on that page it says
The JDBC provider requires the following DataStoreHelper class:
com.ibm.websphere.rsadapter.MicrosoftSQLServerDataStoreHelper
which I tried specifying, but it couldn't find, so I am using instead
com.ibm.websphere.rsadapter.GenericDataStoreHelper.
I am using om.microsoft.sqlserver.jdbc.SQLServerConnectionPoolDataSource as
the JDBC Provider Implementation class name. I have tried various
combinations of connection pool custom properties, including databaseName,
portNumber, and serverName. I have also tried setting a custom poroperty of
URL set to dbc:sqlserver://tonava:2005, or leaving the port off.
Here's the stack trace:
[3/27/08 14:34:51:516 PDT] 0000002a ResourceMgrIm I WSVR0049I: Binding
ab405sql as jdbc/tonavasqlserver
[3/27/08 14:34:51:516 PDT] 0000002a DSConfigurati W DSRA0174W: Warning:
GenericDataStoreHelper is being used.
[3/27/08 14:34:52:547 PDT] 0000002a DSConfigurati W DSRA8201W: DataSource
Configuration: DSRA8040I: Failed to connect to the DataSource. Encountered
java.sql.SQLException: The TCP/IP connection to the host has failed.
java.net.ConnectException: Connection refused: connectDSRA0010E: SQL State =
08S01, Error Code = 0.
java.sql.SQLException: The TCP/IP connection to the host has failed.
java.net.ConnectException: Connection refused: connectDSRA0010E: SQL State =
08S01, Error Code = 0
at
com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown
Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(Unknown
Source)
at
com.microsoft.sqlserver.jdbc.SQLServerConnection.loginWithoutFailover(Unknown
Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Source)
at
com.microsoft.sqlserver.jdbc.SQLServerDataSource.getConnectionInternal(Unknown Source)
at
com.microsoft.sqlserver.jdbc.SQLServerPooledConnection.createNewConnection(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerPooledConnection.<init>(Unknown
Source)
at
com.microsoft.sqlserver.jdbc.SQLServerConnectionPoolDataSource.getPooledConnection(Unknown Source)
at
com.ibm.ws.rsadapter.DSConfigurationHelper$1.run(DSConfigurationHelper.java:1161)
Maybe I need to go find the MicrosoftSQLServerDataStoreHelper class, and get
it in the classpath.
.
- Follow-Ups:
- RE: Websphere compatibility
- From: Wes Clark
- RE: Websphere compatibility
- Prev by Date: Cannot connect to my SQL 2005 server using JDBC - can any diagnostic tool tell me what the problem is?
- Next by Date: RE: Websphere compatibility
- Previous by thread: Cannot connect to my SQL 2005 server using JDBC - can any diagnostic tool tell me what the problem is?
- Next by thread: RE: Websphere compatibility
- Index(es):
Relevant Pages
|
Loading