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

Unable to configure JDBC adapter

  • 1.  Unable to configure JDBC adapter

    Posted Thu August 12, 2004 09:16 AM

    Hello Wm Folks,
    I am using SQL Server 2000 driver for JDBC and I am not able to configure the adapter. I went thru so many threads but could not find a solution for this problem. The errors encountered are

    [ART.118.5042]Adapter Runtime(Connection): Unable to enable connection resourse…
    [ART.118.5036]Adapter Runtime(Connection): Unable to configure connection manager
    [ADA.1.200]The JDBC data source class cannot be located.

    All classpath variables and jar files are set right according to the webMethods & SQL-JDBC driver pdfs and I even checked the class names for Driver and DataSource also.They were also given correctly.I am not able to find the problem inorder to fix it.Any help on this is greatly appreciated.

    Thanks,
    Shelly


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


  • 2.  RE: Unable to configure JDBC adapter

    Posted Thu August 12, 2004 10:33 AM

    Did you use the Microsoft jars? MS Knowledge Base article 313100 describes how to access SQL Server from Java. With the jars and settings described there I got the adapter running without problem.


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


  • 3.  RE: Unable to configure JDBC adapter

    Posted Thu August 12, 2004 04:49 PM

    Thanks Martin,
    I did follow that article while configuring my SQL Server Driver for JDBC. I have set all the classpath variables as given in the article. But I still can’t enable my JBDC adapter. Is there anythign extra that I need to do to make the connection manager work and eliminate these errors.

    [ART.118.5042]Adapter Runtime(Connection): Unable to enable connection resourse…
    [ART.118.5036]Adapter Runtime(Connection): Unable to configure connection manager
    [ADA.1.200]The JDBC data source class cannot be located.

    Is there anything else that anybody can think of. Pls help

    Thanks,
    Shelly


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


  • 4.  RE: Unable to configure JDBC adapter

    Posted Thu August 12, 2004 11:56 PM

    Shelly,
    Post your JDBC Adapter configuration parameters and env setup details. This will help us get more information on your setup and hence suggest a solution.

    • Saurabh.

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


  • 5.  RE: Unable to configure JDBC adapter

    Posted Fri August 13, 2004 01:06 AM

    Following are the parameters in my JDBC Adapter configuration screen.

    Connection Type JDBC Adapter Connection
    Package Name custm_JDBC_adapter_conn
    Transaction Type NO_TRANSACTION
    DataSource Class com.microsoft.jdbcx.sqlserver.SQLServerDataSource
    serverName xyz
    user abc
    password ******
    Retype password *******
    databaseName Wm_Db
    portNumber 1433
    networkProtocol tcp
    Other Properties
    Connection Management Properties

    And one more new update to my previous situation is that I installed a SQL Server Driver for JDBC with sp1, prevly I had sp3. After running sp1 driver, one error got eliminated. Now the errors encountered are only the below two.

    [ART.118.5042]Adapter Runtime(Connection): Unable to enable connection resource…
    [ART.118.5036]Adapter Runtime(Connection): Unable to configure connection manager

    I am trying to figure out if I need to write any service to get this running!! Any ideas??

    Thanks,
    Shelly


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


  • 6.  RE: Unable to configure JDBC adapter

    Posted Fri August 13, 2004 09:23 AM

    What JVM do you have installed? I forgot, we had to install j2re 1.4.2 (or newer). wM came with 1.3 which seems to be incompatible with the SQL-driver.
    Make sure to install j2re files in a new directory (default install directory will do fine) and change the path-settings in the config-files IS\bin accordingly.


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


  • 7.  RE: Unable to configure JDBC adapter

    Posted Fri August 13, 2004 11:43 PM

    What version of the driver you have?

    Did you copy the driver jar files to the WmJDBCAdapter\code\jars\static folder? Ensure that the driver jars are in the server classpath.

    I dont see the need for jre1.4.2 as I have it up and running for 1.3.1; IS 6.1; JDBC Adapter v6.0.3.1; (even though min jvm version for this adapter is 1.4.2)

    • Saurabh.

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


  • 8.  RE: Unable to configure JDBC adapter

    Posted Sun August 15, 2004 03:13 AM

    I have jre1.4.2 and also the driver jar files are present in the WmJDBC package. But still I get the same error. My JVM in integration server is 1.3.1 so I redirected it to another jre1.4.2 directory. It did not make any diff…I am not able to figure out where the problem is coming from??? Any ideas?


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


  • 9.  RE: Unable to configure JDBC adapter

    Posted Tue August 17, 2004 03:48 PM

    Shelly,
    as I suggested, you have to put the jars in code/jars/static folder.

    Why dont you post your server classpath on the thread. This will help us determine if thats the problem or not!

    • Saurabh.

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


  • 10.  RE: Unable to configure JDBC adapter

    Posted Wed August 18, 2004 12:51 AM

    Saurabh,
    I did as per ur suggestions, I did not have a static folder in WmJDBCAdapter/code/jars so i created a new folder with the name static and loaded these jar files in that folder. Now I have the jar files in both IS/lib/jars/ and also in WmJDBCAdapter package. Even that did not make the situation any better!!! I am getting the same ol’ errors. I am pasting my server classpath also below. Is there anything else I need to do.Pls let me know if u need any additional details.

    C:\Program Files\webMethods6\IntegrationServer\updates\IS_6-0-1_SP2.jar
    C:\Program Files\webMethods6\IntegrationServer\lib\classes\
    C:\Program Files\webMethods6\IntegrationServer\lib\server.jar
    C:\Program Files\webMethods6\IntegrationServer\lib\client.jar
    C:\Program Files\webMethods6\IntegrationServer\lib\mail.jar
    C:\Program Files\webMethods6\common\lib\client60.jar
    C:\Program Files\webMethods6\common\lib\apiutil60.jar
    C:\Program Files\webMethods6\IntegrationServer\lib\jars\msbase.jar
    C:\Program Files\webMethods6\IntegrationServer\lib\jars\mssqlserver.jar
    C:\Program Files\webMethods6\IntegrationServer\lib\jars\msutil.jar
    C:\Program Files\webMethods6\IntegrationServer\lib\jars\sl53_cj32.jar
    C:\Program Files\webMethods6\IntegrationServer\packages\WmART\code\jars\static\wmartbundle.jar
    C:\Program Files\webMethods6\IntegrationServer\packages\WmFlatFile\code\jars\static\ffcore.jar
    C:\Program Files\webMethods6\IntegrationServer\packages\WmFlatFile\code\jars\static\tspace.jar
    C:\Program Files\webMethods6\IntegrationServer\packages\WmIPRoot\code\jars\static\WmIPRoot.jar
    C:\Program Files\webMethods6\IntegrationServer\packages\WmJDBCAdapter\code\jars\static\msbase.jar
    C:\Program Files\webMethods6\IntegrationServer\packages\WmJDBCAdapter\code\jars\static\mssqlserver.jar
    C:\Program Files\webMethods6\IntegrationServer\packages\WmJDBCAdapter\code\jars\static\msutil.jar
    C:\Program Files\webMethods6\IntegrationServer\packages\WmPartners\code\classes\
    C:\Program Files\webMethods6\IntegrationServer\packages\WmPRT\code\jars\static\wmprt.jar
    C:\Program Files\webMethods6\IntegrationServer\packages\WmTN\code\jars\static\tncore.jar
    C:\Program Files\webMethods6\IntegrationServer\packages\WmWin32\code\classes.\


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


  • 11.  RE: Unable to configure JDBC adapter

    Posted Wed August 18, 2004 01:33 AM

    Shelly,

    Everything looks pretty solid as far as the jar file locations are concerned. I have been using SQL 2000 for a few years with no trouble at all.

    Two things I would change in your configuration under the connection screen and then you should be up and running:

    1. Remove the TCP reference from the Network Properties.
    2. Under “Other Properties” add the following:

    selectMethod=cursor

    Everything else looks good. Let’s see what happens.

    Ray


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


  • 12.  RE: Unable to configure JDBC adapter

    Posted Wed August 18, 2004 04:06 PM

    Shelly,
    Try what Ray has suggested. I will also ask you to try removing the microsoft jdbc driver jars from “C:\Program Files\webMethods6\IntegrationServer\lib\jars” directory just for the heck of it. (this will ensure that classes in sl53_cj32.jar gets precedence over classes in microsoft jdbc driver jars - just in case, if there is any conflict).

    After this, let us know if you still get the same error.

    As Ray pointed out, everything else looks good. I see you are running 6.0.1 SP2.

    • Saurabh.

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


  • 13.  RE: Unable to configure JDBC adapter

    Posted Thu August 19, 2004 12:28 AM

    Ray and Saurabh,
    Thank you for your suggestions. I have applied the points which you have provided me but for some reason I am still getting those error messages. Do u think I am having issues because of my versions…

    My versions are :
    IS 6.0.1 SP2
    JDBC 6.0.3
    SQL Server 2000 8.00.194

    Thanks, Shelly


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


  • 14.  RE: Unable to configure JDBC adapter

    Posted Thu August 19, 2004 02:37 AM

    Shelly,

    The SP2 will not have any affect on your installation.

    I wouldn’t remove the MS SQL jar files because the JDBC adapter will not have anyway to connect to the database.

    Also, one other thing that you need to check:

    If you make ANY changes to the JDBC settings, retype the password in the password spaces, or else you will have problems connecting.

    You are using the latest JDBC adapter build, so I see no other problems. I am using the same.

    Let me know how this works.

    Ray


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


  • 15.  RE: Unable to configure JDBC adapter

    Posted Thu August 19, 2004 05:15 PM

    Ray,
    Clarification: I asked Shelly to remove the ms jdbc driver jars from the “C:\Program Files\webMethods6\IntegrationServer\lib\jars” but keep them in “WmJDBCAdapter\code\jars\static”.

    This way the JDBC adapter can still reference the class files from the jars in the jars/static folder.

    Reason: this will ensure that classes in sl53_cj32.jar gets precedence over classes in microsoft jdbc driver jars - just in case, if there is any conflict.

    Shelly,
    If this also doesnt work, I suggest that you write a simple java client outside of webM to connect to the same database. This will have webM out of the loop. I think at this stage, it is worth trying.

    HTH,
    Saurabh.


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


  • 16.  RE: Unable to configure JDBC adapter

    Posted Thu August 19, 2004 05:17 PM

    and yes, dont forget to restart the IS after moving the ms jdbc driver jar files.

    • Saurabh.

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


  • 17.  RE: Unable to configure JDBC adapter

    Posted Tue December 28, 2004 05:34 AM

    Hi Friends,
    I am using webMethods 6.1 and have installed JDBC adapter 6.0.3 on Windows 2000 Professional .JVM ver 1.3.1
    I am getting an error while creating new Connection to Oracle

    The error message displayed is
    Error encountered
    [ART.118.5011] Adapter Runtime (Connection): Unable to create new connection first:conn.
    [ART.118.5020] Adapter Runtime (Connection): Unable to process connection properties. Internal error.

    I have placed classes12.zip in the IS\lib\jars and WmJdbcAdapter\code\jars\static folders

    The following are the configuration details that i use for creating new connection
    Transaction Type Local Transaction
    DataSource Class com.jdbc.pool.OracleDataSource (also tried with oracle.jdbc.pool.OracleConnectionPoolDataSource)
    serverName Name of the Oracle server
    user uid
    password pwd
    databaseName pmdb
    portNumber 1521
    Driver properties driverType=thin

    Please help!!


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


  • 18.  RE: Unable to configure JDBC adapter

    Posted Fri August 12, 2005 06:41 PM

    I was struggling with the same issue until I copied \IntegrationServer\packages\WmJDBCAdapter\code\jars\javaxsql.zip into \IntegrationServer\lib\jars and restarted IS, the problem was resolved.


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