WebSphere Application Server & Liberty

 View Only
Expand all | Collapse all

Update Server configuration file in the IBM WebSphere Application Server (int app svr V 8.5)

  • 1.  Update Server configuration file in the IBM WebSphere Application Server (int app svr V 8.5)

    Posted Fri January 07, 2022 09:48 AM

    Update Server configuration file "server.xml" in the IBM WebSphere Application Server (int app svr V 8.5)

    I am able to setup/run Java Spring Boot Web Application (the war file) on the IBMi WebSphere Integrated Web Application Server (int app svr V 8.5) by using the Application Server's shell scripts provided in the folder "/QIBM/ProdData/OS/ApplicationServer/bin" as: shell scripts

    1. createApplicationServer.sh -server 'my_server' -startingPort '9999' -userid xxxxxx
    2. installApplication.sh -server 'my_server' -applicationPath '/home/myserver.war' -applicationName 'myserver' -contextRoot '/'
    3. startApplicationServer.sh -server 'my_server'

    Means by using the provided shell scripts able to do the below tasks:

    1. Create the Application Server (int app svr V 8.5)
    2. And then install/setup Java Spring Boot web application in it
    3. Then start/run the Java web application

    But before starting/running the Java web application (by startApplicationServer.sh in step 3), need to modify the Server configuration file "server.xml" manually (need to add missing "" in xml file); because no shell script is provided to modify the configuration file.

    Can we do this manual task (Server configuration file modification task) by using any script? Any suggestion will be appreciated.



    ------------------------------
    Kishore Kushwaha
    ------------------------------


  • 2.  RE: Update Server configuration file in the IBM WebSphere Application Server (int app svr V 8.5)

    Posted Mon January 10, 2022 01:49 AM
    Hello Kushwaha,
    what exactly is wrong in the XML file after the deployment? As you are deploying the application using the provided scripts the XML file is supposed to be correct. Therefore I'd suggest you open a support case with IBM to get that clarified as it should never be required to fix the server.xml manually when running supported deployment steps.

    Hope this helps - Hermann

    ------------------------------
    Hermann Huebler
    2innovate IT Consulting GmbH
    Vienna
    Austria

    #IBMChampion
    ------------------------------



  • 3.  RE: Update Server configuration file in the IBM WebSphere Application Server (int app svr V 8.5)

    Posted Mon January 10, 2022 02:55 AM
    Hi Hermann,

    The following features are missing in the default XML file
    <feature>springBoot-2.0</feature>
    <feature>webSocket-1.1</feature>
    <feature>transportSecurity-1.0</feature>
    <feature>beanValidation-2.0</feature>
    <feature>restConnector-2.0</feature>​
    missing features



    Yes, after setting up the web server application, need to start the same application, which requires updating the server.xml file for missing features,
    So asking that, is there any command/script to update the XML file appropriately.   



    ------------------------------
    Kishore Kushwaha
    ------------------------------



  • 4.  RE: Update Server configuration file in the IBM WebSphere Application Server (int app svr V 8.5)

    Posted Mon January 10, 2022 03:17 AM
    Hello Kushwaha,
    ok, understand now. From your previous update I thought that some double quotes are missing. Hence the confusion.
    If you need to add features you can either use an editor of choice to add the required features to the XML. If you don't want to use the editor there is also an eclipse plug-in available (not sure if it exists for other development environments as well) which allows you to build the server.xml.

    Hope this helps - Hermann

    ------------------------------
    Hermann Huebler
    2innovate IT Consulting GmbH
    Vienna
    Austria

    #IBMChampion
    ------------------------------



  • 5.  RE: Update Server configuration file in the IBM WebSphere Application Server (int app svr V 8.5)

    Posted Mon January 10, 2022 05:24 AM
    Edited by Kishore Kushwaha Mon January 10, 2022 05:26 AM

    Hi Hermann,

    Thanks for suggesting how to update the server.xml for required features.

    But my question is not for, how the XML file can be updated, even my question is if WebSphere is provided various scripts to setup/run Java Spring Boot Web Application on the IBMi WebSphere Integrated Web Application Server (int app svr V 8.5) by using the Application Server's shell scripts provided in the folder "/QIBM/ProdData/OS/ApplicationServer/bin", S
    o how to update the server.xml by using such scripts/commands not to update manually(by opening the XML file in editior), or it's not provided yet??



    ------------------------------
    Kishore Kushwaha
    ------------------------------



  • 6.  RE: Update Server configuration file in the IBM WebSphere Application Server (int app svr V 8.5)

    Posted Tue January 11, 2022 06:09 AM
    Hello Kishore,
    sorry, but I'm not aware of such a script - hence the reference to the an editor or the eclipse plugin.

    ------------------------------
    Hermann Huebler
    2innovate IT Consulting GmbH
    Vienna
    Austria

    #IBMChampion
    ------------------------------



  • 7.  RE: Update Server configuration file in the IBM WebSphere Application Server (int app svr V 8.5)

    Posted Tue January 11, 2022 10:55 AM
    hello Kishore,


      Because IBMi WebSphere Integrated Web Application Server (int app svr V 8.5) is only for Power i platform and following the next link (Integrated Web Application Server Vs. WebSphere Application Server tab)
      https://www.ibm.com/support/pages/integrated-web-application-server-ibm-i-frequently-asked-questions
    WebSphere i Integrated Application server administration options

      Not sure what scripts do you have in "/QIBM/ProdData/OS/ApplicationServer/bin" (could you put the list of scripts?) but as alternative you can use "Web IBM  Web Administration for IBM i"

      Or as suggested by Herman edit server.xml file.

      Hope this helps,



    ------------------------------
    Gabriel Aberasturi
    ------------------------------



  • 8.  RE: Update Server configuration file in the IBM WebSphere Application Server (int app svr V 8.5)

    Posted Wed January 12, 2022 01:48 AM

    Hi Gabriel,

    These are available scripts under the folder "/QIBM/ProdData/OS/ApplicationServer/bin":

    but no script is provided to configure/update the server.xml ???


    ------------------------------
    Kishore Kushwaha
    ------------------------------



  • 9.  RE: Update Server configuration file in the IBM WebSphere Application Server (int app svr V 8.5)

    Posted Wed January 12, 2022 02:37 AM
    Kishore,

      Maybe the scripts setApplicationServerProperties.sh and then saveApplicationServer.sh?

      Not sure what they do, could you invoque to take help about them?

      Take in mind that integrated server is like liberty profile and liberty profile can edit as Herman's suggestion or in Power i case from "Web IBM  Web Administration for IBM i"

      Hello Kishore,
    sorry, but I'm not aware of such a script - hence the reference to the an editor or the eclipse plugin.

      Hope this helps.

    Regards,

    ------------------------------
    Gabriel Aberasturi
    ------------------------------



  • 10.  RE: Update Server configuration file in the IBM WebSphere Application Server (int app svr V 8.5)

    Posted Wed January 12, 2022 08:49 AM

    Kishore

    Just adding some background to what the others have stated, in regards to configuring the WebSphere Liberty server.xml file (or the Open Liberty server.xml) 

    Unlike traditional WebSphere Application Server (tWAS) where the configuration is maintained in multiple  xml files where either the adminconsole or wsadmin are employed (and required to be used) to correctly maintain the server configuration and insure consistency between the multiple xml file, WebSphere Liberty was designed to employ a single (readable and easily understandable) XML file, though one can optionally employ multiple XML files if desired for operational separation on concerns.
    Further, while the contents of tWAS configuration files are not documented (aside from a few problem recovery cases), the Liberty configuration is completely documented https://www.ibm.com/docs/en/was-liberty/core?topic=overview-server-configuration (and the rationale for this approach is detailed in this reference).

    As a result there's no scripting configuration tooling provided with Liberty , instead one chooses the approach easiest to implement in their development and operational environments, which I have seen range from simple text editor such as Notepad to bespoke scripts that modify the contents based on property files used by the scripts.  

    In closing, as others have stated, there's no scripting provided for maintaining the configuration with Liberty, rather Liberty provides you the liberty (pun intended) to choose the best approach for maintaining the configuration based the operational conventions in your enterprise



    ------------------------------
    Tom Alcott
    Senior Technical Staff Member
    IBM
    ------------------------------