webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

JDBC Connection Problem

  • 1.  JDBC Connection Problem

    Posted Fri February 14, 2003 08:13 PM

    I’m getting the following error while trying to create a JDBC adapter connection.

    Error encountered [ART.118.5011] Adapter Runtime (Connection): Unable to create new connection JDBC:

    The error is kind of cyptic so I’m not sure exactly what might be wrong. The network protocol setting I’m not quite sure what the values should be and the documentation doesn’t give any clues. Here is how I have it setup. Does anyone see what I might have wrong?

    Transaction Type = LOCAL_TRANSACTION
    Source Class = oracle.jdbc.pool.OracleDataSource
    ServerName = (host name of my oracle server)
    user = (user name)
    password = (password)
    DatabaseName = (Oracle Schema name)
    portNumber =1521
    NetworkProtocol=TCP
    Other Properties=driverType=thin

    Thanks,
    Tim


    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: JDBC Connection Problem

    Posted Mon February 17, 2003 08:48 AM

    I can see two possible problems.

    1. The source class is unknown to me, but may be adequate nonetheless. Try using oracle.jdbc.pool.OracleConnectionPoolDataSource instead.

    2. You may not have the Oracle JDBC drivers properly installed. Verify that your WM_HOME/IntegrationServer/lib/jars folder contains classes12.zip. If you don’t have it, copy it from your ORACLE_HOME or download from www.oracle.com.

    Note that this cryptic and generic error message can contain all kinds of errors. Check your error log for the causing exception, WM_HOME/IntegrationServer/logs/errorDATE.log.


    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods


  • 3.  RE: JDBC Connection Problem

    Posted Tue May 27, 2003 09:02 PM

    Oracle 8i.*
    webMethods on W2000
    classes12.zip in IntegrationServer/lib/jars

    Using:
    Transaction Type LOCAL_TRANSACTION
    DataSource Class oracle.jdbc.pool.OracleDataSource
    serverName feynman
    user a014993
    password ******
    databaseName cmappd01
    portNumber 1521
    networkProtocol TCP
    Other Properties driverType=thin

    Get the following errors:
    [ART.118.5042] Adapter Runtime (Connection): Unable to enable connection resource jdbcConnection:daveTest.
    [ART.118.5036] Adapter Runtime (Connection): Unable to configure connection manager.
    [ADA.1.204] Cannot connect to the database with DataSource class “oracle.jdbc.pool.OracleDataSource”.
    Invalid Oracle URL specified: OracleDataSource.makeURL


    #webMethods
    #Adapters-and-E-Standards
    #Integration-Server-and-ESB


  • 4.  RE: JDBC Connection Problem

    Posted Mon July 28, 2003 07:57 AM

    Hi David,

    Try using oracle.jdbc.pool.OracleConnectionPoolDataSource in DataSource Class.Double Check the values serverName,databaseName and Port.

    Cheers,
    Thota


    #webMethods
    #Adapters-and-E-Standards
    #Integration-Server-and-ESB


  • 5.  RE: JDBC Connection Problem

    Posted Mon July 28, 2003 08:00 AM


  • 6.  RE: JDBC Connection Problem

    Posted Tue October 14, 2003 05:09 PM

    I’ve seen a lot of posts about JDBC Adapter connection problems, but unfortunately I am still getting an error:

    Error encountered
    [ART.118.5042] Adapter Runtime (Connection): Unable to enable connection resource Test:CortConnection.
    [ART.118.5036] Adapter Runtime (Connection): Unable to configure connection manager.
    [ADA.1.204] Cannot connect to the database with DataSource class “oracle.jdbc.pool.OracleDataSource”.
    [wm-cjdbc31-0006][Oracle JDBC Driver]Unable to connect. Invalid URL.

    Does anyone have any suggestions or tips to try? I’m using the standard connection parameters:

    Transaction Type = NO_TRANSACTION (i’ve also tried LOCAL_TRANSACTION)
    DataSource Class = oracle.jdbc.pool.OracleDataSource
    Other Properties = driverType=thin

    Thanks
    Cort


    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods


  • 7.  RE: JDBC Connection Problem

    Posted Thu October 16, 2003 05:49 PM

    Hi Cort,

    Are you create separate package for adapterConnection in developer. 
    

    (ex:WmDbConnections.In that create folder,subfolders).Now open Administrator.Click on JDBCAdapter under Adapters.Edit.Make sure that
    You have to specify Package name from pop-up menu.Select package name as WmConnections you have created earlier.give foldeer name as foldername.subfoldername you have created those under package WmConnections.Now give connection name as Test in Connection name
    box.Now select TransactionType as LOCAL_TRANSACTION.
    DriverClass as oracle.jdbc.pool.OracleDataSource.Then serverName,
    user,password,databasename,portnumber,otherProperty as driverType=thin.
    connectionManagement properties are select Enable ConnectionPooling as true.set other parameters like min,max poll size.etc.Then click save Connection butoon.It will works you.

    Regards,
    SriniK


    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods


  • 8.  RE: JDBC Connection Problem

    Posted Fri January 09, 2004 10:17 AM

    Hi all,

    I’m a webMethods newbie and I’m trying to configure a JDBC Connection to an Orable DB. And after editing all parameters I’m obtaining the next error:

    Error encountered
    [ART.118.5042] Adapter Runtime (Connection): Unable to enable connection resource Connection:TestConnection.
    [ART.118.5036] Adapter Runtime (Connection): Unable to configure connection manager.
    [ADA.1.204] Cannot connect to the database with DataSource class “oracle.jdbc.pool.OracleConnectionPoolDataSource”.
    Excepción de E/S: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135296000)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))

    This is the configuration I’m using:

    Transaction Type : LOCAL_TRANSACTION
    DataSource Class : oracle.jdbc.pool.OracleConnectionPoolDataSource
    Other Properties : driverType = thin

    Does anyone knows what I’m doing wrong?

    Thanks in advance,

    Ignasi


    #webMethods
    #Adapters-and-E-Standards
    #Integration-Server-and-ESB


  • 9.  RE: JDBC Connection Problem

    Posted Fri January 09, 2004 07:41 PM

    The following settings work for me to connect to an Oracle 9i RAC instance (I’m not using the OCI drivers for failover support just yet)

    Transaction Type LOCAL_TRANSACTION
    DataSource Class oracle.jdbc.pool.OracleDataSource
    serverName hostname
    user username
    password ******
    databaseName databaseName
    portNumber 1521
    networkProtocol not specified
    Other Properties driverType=thin

    These settings allow me to connect using the XA transaction type:

    Transaction Type [i]XA_TRANSACTION [/i] DataSource Class [i]oracle.jdbc.xa.client.OracleXADataSource [/i] serverName [i]hostname [/i] user [i]username[/i] password [i]******[/i] databaseName [i]databaseName[/i] portNumber [i]1521 [/i] networkProtocol [i]not specified[/i] Other Properties [i]driverType=thin [/i]

    HTH,

    Mark


    #webMethods
    #Integration-Server-and-ESB
    #Adapters-and-E-Standards


  • 10.  RE: JDBC Connection Problem

    Posted Fri January 09, 2004 09:43 PM

    i had the same problem as that of many of the others
    but the reason for my problem was that
    my oracale server was not started

    before doing all the connection check whether the oracle is startes at the controlpanel/services


    #webMethods
    #Adapters-and-E-Standards
    #Integration-Server-and-ESB


  • 11.  RE: JDBC Connection Problem

    Posted Wed January 14, 2004 05:24 AM

    Hi, there,

    Has anyone ever encountered this problem (below) when trying to enable JBDC Adapter connection to a Microsoft SQL 2000 database?

    Error encountered
    [ART.118.5042] Adapter Runtime (Connection): Unable to enable connection resource wmtraining.JDBCAdapter.Services:wmtraining.
    [ART.118.5036] Adapter Runtime (Connection): Unable to configure connection manager.
    javax/sql/DataSource

    The 3 jar files for MS SQL 2000 have been placed in <is>/lib/jars. IS appears to be able to load the driver but failed to create the connection.

    Any help would be much appreciated.

    BTW, we are using webMethods 6.0.1 (build no. 425).

    Cheers,

    Jin


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards


  • 12.  RE: JDBC Connection Problem

    Posted Wed January 21, 2004 05:12 PM

    Hi all,

    It’s obvious I’m a newbie in the world of webMethods. Sorry.

    I’ve realized that when I execute for the every first time my adapter service (JDBC adapter) it all works fine, but whenever I try to execute it later, it fails (in fact, what it happens is that keeps in state “running” for hours).

    Does anyone have any idea what’s going on ?

    thanks in advance,

    Ignasi


    #webMethods
    #Adapters-and-E-Standards
    #Integration-Server-and-ESB


  • 13.  RE: JDBC Connection Problem

    Posted Thu January 22, 2004 09:22 AM

    Hi all,

    I think I’ve finally been able to determinate what’s going wrong with my JDBC adapter service. The tables where I’m trying to insert don’t have primary key (instead of this, a unique index is used). If I insert a record and then erase it, when afterwards I try to insert again the same record my service generates an infinite loop, and doesn’t seem to finish.

    Does anyone knows if this can be solved without modifying my tables definitions?

    Thanks in advance,

    Ignasi


    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods


  • 14.  RE: JDBC Connection Problem

    Posted Thu February 05, 2004 06:39 PM

    Hi all,

    I’ve already created a JDBC adapter connection, and various adapter services. Now I’ve moved those services to another package but I’m not able to do it the same with the JDBC adapter connection. How it can be done?

    I’m supposed to create a new connection and therefore all the services?

    thanks in advance,

    Ignasi


    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB


  • 15.  RE: JDBC Connection Problem

    Posted Thu February 05, 2004 07:22 PM

    Ignasi,

    You can use the JDBC Adapter’s admin pages to copy the adapter connection to a new package and folder. Click on the icon in the “copy” column on the row where your adapter is listed. You will need to respecify the login password, retry count and retry timeout settings, but all of the other information is preserved.

    Mark


    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB


  • 16.  RE: JDBC Connection Problem

    Posted Fri February 06, 2004 05:28 PM

    AFAIK i guess MS SQL JDBC Driver has two types of jars (signed and unsigned).Pls try the unsigned one and also checking JVM version…
    is there two versions of JDK in classpath.

    ~Prabhu


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards


  • 17.  RE: JDBC Connection Problem

    Posted Fri February 06, 2004 07:46 PM

    I am trying to configure a JDBC Adapter for WM 6.0.1
    I have WM running on a MS W2K PC and my Oracle db is on HP-UX 11.0
    (version 9.2.0.3). I copied the ojdbc14.jar file (Oracle asks us to
    use this instead of classes.zip for Java >= 1.2). I currently have
    Java SDK 1.4.1 on my PC.

    When I try to enable the JDBC Adapter I get:

    Error encountered

    [ART.118.5042] Adapter Runtime (Connection): Unable to enable connection resource D106Exercises.adapters:D106Adapter.
    [ART.118.5036] Adapter Runtime (Connection): Unable to configure connection manager.
    Prohibited package name: java.sql

    I can’t find information on this error.
    Any help is appreciated.

    Thank you
    Subu


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards


  • 18.  RE: JDBC Connection Problem

    Posted Fri February 06, 2004 08:52 PM

    Suba ,
    It might be better to start a new thread on this but here is my thoughts. webMethods 6.0.1 is running on the JVM 1.3.1 that was installed on it most probably. Try entering a coomand like this in a DOS windw:
    <webMethods>\jvm\bin\Java -version
    You could edit your server.bat file to find the JVM 1.4 you have on your system (maybe c:\jdk1.4\bin). Then restart your Integration Server. I don’t think JVM 1.4 is recommended for webMethods 6.0.1. I noticed that some java services don’t work with JVM 1.4 (ex. PSUtilities.Misc:AppendStringListToStringTable). You might have to change some of your Java code.

    Now webMethods6.1 runs under JVM 1.4.1 - you can check the version as I explained above. The ojdbc14.jar file works with JVM 1.4.1. I have it installed on the AIX 5.2 operating system in <is>/lib/jars. I had to change the permissions on it but it works fine.


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards


  • 19.  RE: JDBC Connection Problem

    Posted Fri May 07, 2004 10:01 PM

    Hi Vishal,

    There can be invalid user credentials passed to connect to the database. These parameters are given when we create the jdbc connection pool alias. This can be one of the reason. Check this.

    shiva


    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods


  • 20.  RE: JDBC Connection Problem

    Posted Tue October 12, 2004 07:05 AM

    If you are using windows make sure that webMethods is installed directly under the C or D drive and not under Program File (SOme times this will create a problem ) .I made this change and it is working fine

    Srini


    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods


  • 21.  RE: JDBC Connection Problem

    Posted Fri March 11, 2005 06:51 PM

    Srinivas comment should be ignored ! Installing under Program Files has no impact on JDBC.

    Mike


    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods


  • 22.  RE: JDBC Connection Problem

    Posted Wed April 20, 2005 11:58 AM

    Hi,

    I’m trying to manipulate CLOB object. Oracle driver thin limite the size of object to 4 ko. Unfortunately, I have to use bigger clob.

    So, I tried to create a new JDBC Connection like that :
    Transaction Type : LOCAL_TRANSACTION
    DataSource Class : oracle.jdbc.pool.OracleConnectionPoolDataSource
    serverName : pfq-bps1-di1
    user : framework
    password : ******
    databaseName : SYSWM02
    portNumber : 1521
    networkProtocol : tcp
    Other Properties : driverType=oci

    (server, schema, port, user, password are right)

    I also tried the oracle.jdbc.pool.OracleDataSource for the driver class and ‘oci’, ‘oci8i’, ‘oci8’ for the driverType.

    WM 6.1, Classes12.zip and sl53_cj33.jar in WM_HOME/IntegrationServer/lib/jars.
    LD_LIBRAIRY_PATH=${ORACLE_HOME}/lib32

    The error is :
    Error encountered
    [ART.118.5042] Adapter Runtime (Connection): Unable to enable connection resource fmkEventClient.db.connection:eventClientLobConnection.
    [ART.118.5063] Adapter Runtime (Connection): Unable to start connection fmkEventClient.db.connection:eventClientLobConnection: after 1 attempt(s).
    [ADA.1.204] Cannot connect to the database with DataSource class “oracle.jdbc.pool.OracleConnectionPoolDataSource”.
    Closed Connection

    Does anyone encountered this problem ?


    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods


  • 23.  RE: JDBC Connection Problem

    Posted Wed April 20, 2005 01:26 PM

    Hi

    The DataSource class should be oracle.jdbc.pool.OracleDataSource I guess.

    Regards,
    Raghu.


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards


  • 24.  RE: JDBC Connection Problem

    Posted Thu August 04, 2005 05:57 AM

    hi all,
    I’am getting the following error message when trying to start the webMethods JDBC Adapter Connection:

    Error encountered
    [ART.118.5042] Adapter Runtime (Connection): Unable to enable connection resource
    Package Name.Utility.JDBCConnection:utilConnection.
    [ART.118.5063] Adapter Runtime (Connection): Unable to start connection Package Name.Utility.JDBCConnection:utilConnection: after 1 attempt(s).
    [ADA.1.200] The JDBC DataSource class “oracle.jdbc.pool.OracleDataSource” cannot be located.
    oracle.jdbc.pool.OracleDataSource.class not found

    i have tried oracle.jdbc.pool.OracleConnectionPoolDataSource ,but it still can not work,can u help me pls…

    thank you~

    Regards
    shuyin


    #webMethods
    #Integration-Server-and-ESB
    #Adapters-and-E-Standards


  • 25.  RE: JDBC Connection Problem

    Posted Fri March 18, 2011 10:04 AM

    Hi…Even i face the above error. I have an JDBC adapter(all data are correct). When i try to enable it am getting below error

    [ART.118.5063] Adapter Runtime (Connection): Unable to start connection CwDsConnection.jdbc:DsOracleConnection_LocalTransaction: after 1 attempt(s).
    [ADA.1.200] The JDBC DataSource class “oracle.jdbc.pool.OracleDataSource” cannot be located.
    oracle.jdbc.pool.OracleDataSource


    #webMethods
    #Adapters-and-E-Standards
    #Integration-Server-and-ESB


  • 26.  RE: JDBC Connection Problem

    Posted Fri July 08, 2011 04:31 AM

    Add the following jar if not available
    ojdbc14.jar in webMethods/Integrationserver/lib/jars


    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods