Issue when trying to get the id for JDBCProvider. - Websphere

This is a discussion on Issue when trying to get the id for JDBCProvider. - Websphere ; set newJDBC [$AdminConfig getid /JDBCProvider:Oracle JDBC Driver (XA)/] WASX7015E: Exception running command: "set newJDBC [$AdminConfig getid /JDBCProvider:Oracle JDBC Driver (XA)/]"; exception information: com.ibm.bsf.BSFException: error while eval'ing Jacl expression: can't find accessible method "getid" with 4 argument(s) for class "com.ibm.ws.scripting.AdminConfigClient" while ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: Issue when trying to get the id for JDBCProvider.

  1. Issue when trying to get the id for JDBCProvider.

    set newJDBC [$AdminConfig getid /JDBCProvider:Oracle JDBC Driver (XA)/]
    WASX7015E: Exception running command: "set newJDBC [$AdminConfig getid /JDBCProvider:Oracle JDBC Driver (XA)/]"; exception information:
    com.ibm.bsf.BSFException: error while eval'ing Jacl expression:
    can't find accessible method "getid" with 4 argument(s) for class "com.ibm.ws.scripting.AdminConfigClient"
    while executing
    "$AdminConfig getid /JDBCProvider:Oracle JDBC Driver (XA)/"
    invoked from within
    "set newJDBC [$AdminConfig getid /JDBCProvider:Oracle JDBC Driver (XA)/]"

    How do i include a JDBC Provider that has spaces?
    Can someone assist me asap as i'm running short of time.

    Thanks.

  2. Re: Issue when trying to get the id for JDBCProvider.

    Try to store the provider name in a variable, before calling getid:

    set xname "Oracle JDBC Driver (XA)"
    set newJDBC [$AdminConfig getid /JDBCProvider:$xname]
    puts $newJDBC

    wsadmin does not complain, if the xname does not exist. So you have to check the content of $newJDBC.

    Regards.

  3. Re: Issue when trying to get the id for JDBCProvider.

    May be you can help me with the below.

    I did create some JACLs for creation of JDBCProvider,DataSource,ConnectionPool etc. All the inputs were provided as arguments to the script for the time being. But this is not the process to follow.

    I have to put all these values in an XML file and build it so that the JACL can access the inputs from this XML file. I ran the ws_ant command to build the file but it throws an error.

    Can you suggest me a step by step process to build it as my JACL is unable to find the variables?

    Immediate assistance will be much appreciated.Thanks

  4. Re: Issue when trying to get the id for JDBCProvider.

    This is far, far, far beyond my experience with wsadmin. I only know the -p option to provide a properties file, but i think it doesn't accept XML. May be you can transform XML to properties by XSLT in your ANT file, if you use ws_ant around wsadmin.

    And may be you should post your question in a WAS forum and not in WPS.

    Regards,

    Matthias

+ Reply to Thread