WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

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
  • 1.  Generating plugin for one of the env and getting an error

    Posted Thu March 08, 2018 02:24 PM

    I am a little confused on generating a plugin with command line utility. I’d like to see detailed steps for different scenarios, it will help me a lot.


    I’m trying to generate plugin for one of the env and getting the error below.


    ]$ ./pluginUtility generate --server=Test --targetPath=./../usr/server/Test/plugin-cfg.xml
    The local target server Test will be used to generate the webserver plugin configuration file.
    Unable to complete the operation.
    Error: Could not find the JMX local connector address file at /opt/WebSphere/Liberty17/usr/servers/Test/workarea/com.ibm.ws.jmx.local.address



  • 2.  RE: Generating plugin for one of the env and getting an error

    Posted Fri March 09, 2018 05:57 AM

    Try from remote connection and see the status if local fails .

     

    pluginUtility generate –server=userName:mypassword@testHost:9443 --targetpath=./pluginFiles/plugin-cfg.xml



  • 3.  RE: Generating plugin for one of the env and getting an error

    Posted Fri March 09, 2018 10:27 AM
    If the target server is a local server, please check you server.xml and ensure you have the feature below feature enabled:

    <feature>localConnector-1.0</feature>

    If the target server is a remote server, ensure below feature is enabled,

    <feature>restConnector-1.0</feature>



  • 4.  RE: Generating plugin for one of the env and getting an error

    Posted Mon May 04, 2020 08:16 AM
    Hi,

    It seems that reply for this question is not displaying properly, there is no name of the feature to be enabled. I believe it is localConnector-1.0, however I do have this feature installed and enabled and I am still experiencing this error when I try to build websphere container (doesnt matter the edition, tried latest, full and web-profile 8) using Dockerfile.

    Oddly enough, when container is started and I try to run pluginUtility generate --server=defaultServer --targetpath=/opt/ibm/wlp/plugin-cfg.xml it works just fine. Is there any particular step/place where I need to run pluginUtility to work properly? I am sure I've managed to get it running few months ago when I was playing with Websphere Liberty image for Docker, but it does not work for me anymore. Here is my full dockerfile:

    Would be grateful for any hints.

    Cheers, Chris



    ------------------------------
    Krzysztof Walczak
    ------------------------------



  • 5.  RE: Generating plugin for one of the env and getting an error

    Posted Mon May 04, 2020 08:16 AM
    Hi,

    I think I've found cause of a problem in my installation. It appears that path which is thrown in error message is different than actual path where jmx.address file resides:



    File can be found at /opt/ibm/wlp/output/defaultServer/logs, while Liberty is searching for the file in ../defaultServer/workarea which does not exist.

    Do you have any idea how this can be fixed?

    Thanks in advance, 
    Chris


    ------------------------------
    Krzysztof Walczak
    ------------------------------